From: CMDR furrycat Date: Thu, 6 Apr 2017 13:14:22 +0000 (+0100) Subject: Drugs! X-Git-Url: http://git.furryclan.net/?a=commitdiff_plain;h=2a20357d80b4d0ce7d47dc90c65fe6776cdfa683;p=furrycat%2Fcatbot.git Drugs! --- diff --git a/plugin/affection/affection.py b/plugin/affection/affection.py index cda817b..481a594 100644 --- a/plugin/affection/affection.py +++ b/plugin/affection/affection.py @@ -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: