Conditions | 3 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
1 | import time |
||
7 | @commands(".downtime") |
||
8 | def _downtime(bot, message, channel): |
||
9 | drinks = ['a beer', 'a scotch', 'a bloody mary', 'a nice glass of wine', 'FUCKIN FOUR LOKO', 'a crisp cider'] |
||
10 | action_string = "\001ACTION " |
||
11 | user = parse_line(message).user |
||
12 | if user.lower() == "george" or "thorogood" in user.lower(): |
||
13 | bot.say(channel, action_string + ' gets ' + user + ' one bourbon, one scotch, one beer'+ "\001\n") |
||
14 | else: |
||
15 | bot.say(channel, action_string + ' gets ' + user + ' ' + random.choice(drinks)+ "\001\n") |
||
16 | |||
17 |