From b9935305a0fb46597a8dddaaa1ffed7d71bbc0a2 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 15 Jul 2017 00:57:04 +0000 Subject: [PATCH] Add hero --- price.py | 2 +- trifling.py | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/price.py b/price.py index 6c2f50f..3cfab81 100644 --- a/price.py +++ b/price.py @@ -229,7 +229,7 @@ def bsq(bot, trigger): except: bot.say("Error retrieving data from Bitsquare") -@sopel.module.commands('cryptopia') +@sopel.module.commands('cryptopia', 'shitopia', 'topia', 'ctop') def cryptopia(bot, trigger): try: if not trigger.group(2): diff --git a/trifling.py b/trifling.py index e4a3aff..d1afca5 100644 --- a/trifling.py +++ b/trifling.py @@ -157,6 +157,14 @@ def hmm(bot, trigger): # except: # bot.say("Something something reddit's servers") +herooptions = [ +"https://t.co/CZMFNMifB7", +"https://media.giphy.com/media/REH3MZp1FeCM8/giphy.gif", +] +@sopel.module.commands('hero') +def hero(bot, trigger): + bot.say(random.choice(herooptions)) + @sopel.module.commands('hotline') def hotline(bot, trigger): bot.say(u'☎ Call 1-800-273-8255 to reach the National Suicide Prevention Lifeline ☎' .encode('utf8'))