Drugs!
authorCMDR furrycat <elite@furrycat.net>
Thu, 6 Apr 2017 13:14:22 +0000 (14:14 +0100)
committerCMDR furrycat <elite@furrycat.net>
Mon, 10 Apr 2017 13:33:53 +0000 (14:33 +0100)
plugin/affection/affection.py

index cda817b..481a594 100644 (file)
@@ -5,15 +5,16 @@ import bot
 
 class Affection(object):
   def __init__(self):
-    self.eat = ['biscuit', 'catnip', 'food', 'fish', 'lollipop', 'sausage', 'treat']
+    self.eat = ['biscuit', 'food', 'fish', 'lollipop', 'sausage', 'treat']
     self.drink = ['beer', 'juice', 'milk', 'water']
+    self.drugs = ['catnip', 'onionhead']
     self.fuss = ['fuss', 'hug', 'love', 'nice', 'pat', 'pet', 'stroke']
 
   def description(self):
     return 'Respond (or not) to displays of affection.'
 
   def secret_commands(self):
-    return self.eat + self.drink + self.fuss
+    return self.eat + self.drink + self.drugs + self.fuss
 
   @asyncio.coroutine
   def handle_command(self, message, command, raw):
@@ -39,6 +40,8 @@ class Affection(object):
       responses = ['om nom nom', '^-^', 'meow!', 'lick', ':cat:', ':fork_and_knife:']
     elif command in self.drink:
       responses = ['slurp', '^-^', 'meow!', 'lap lap lap', 'lick', ':cat:', ':tropical_drink:']
+    elif command in self.drugs:
+      responses = ['>(@.@)<']
     else:
       responses = ['nuzzle', '^-^', 'meow!', 'mrrp', ':cat:', ':paw_prints:']
     for response in responses: