We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 721b260 commit 12556b2Copy full SHA for 12556b2
1 file changed
plugins/gnomeagainsthumanity.py
@@ -15,12 +15,12 @@ def shuffle_deck(bot):
15
gnomecards = json.load(f)
16
17
18
-
+
19
@hook.command('cah')
20
def CAHwhitecard(text, message):
21
'''Submit text to be used as a CAH whitecard'''
22
CardText = text.strip()
23
- message(random.choice(gnomecards['black']).format(text))
+ return random.choice(gnomecards['black']).format(text)
24
25
26
@hook.command('cahb')
@@ -32,4 +32,4 @@ def blankfiller(matchobj):
32
return random.choice(gnomecards['white'])
33
34
out = re.sub(r'_', blankfiller, CardText)
35
- message(out)
+ return out
0 commit comments