From: CMDR furrycat Date: Mon, 30 Jan 2017 15:16:10 +0000 (+0000) Subject: Drinks show affection. X-Git-Url: http://git.furryclan.net/?a=commitdiff_plain;h=15e67975ed51bb8477d3402c0da24f0c1cf6f8e7;p=furrycat%2Fcatbot.git Drinks show affection. --- diff --git a/plugin/affection/affection.py b/plugin/affection/affection.py index 8659a42..cda817b 100644 --- a/plugin/affection/affection.py +++ b/plugin/affection/affection.py @@ -6,13 +6,14 @@ import bot class Affection(object): def __init__(self): self.eat = ['biscuit', 'catnip', 'food', 'fish', 'lollipop', 'sausage', 'treat'] + self.drink = ['beer', 'juice', 'milk', 'water'] 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.fuss + return self.eat + self.drink + self.fuss @asyncio.coroutine def handle_command(self, message, command, raw): @@ -36,6 +37,8 @@ class Affection(object): def handle_affection(self, message, command): if command in self.eat: 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:'] else: responses = ['nuzzle', '^-^', 'meow!', 'mrrp', ':cat:', ':paw_prints:'] for response in responses: