give partybot a drink
This commit is contained in:
parent
d57848d4e1
commit
91a456d7e1
1 changed files with 20 additions and 0 deletions
|
@ -21,11 +21,29 @@ def botsnack_cb(room, event):
|
||||||
"How kind!",
|
"How kind!",
|
||||||
"Sweet.",
|
"Sweet.",
|
||||||
"*burp*",
|
"*burp*",
|
||||||
|
]
|
||||||
|
room.send_notice(random.choice(replies))
|
||||||
|
|
||||||
|
|
||||||
|
def botdrink_cb(room, event):
|
||||||
|
replies = [
|
||||||
|
"Hold my beer.",
|
||||||
|
"Ooooh",
|
||||||
|
"Delightful.",
|
||||||
|
"That makes me happy",
|
||||||
|
"How kind!",
|
||||||
|
"Sweet.",
|
||||||
|
"*burp*",
|
||||||
"Ah.. Hiccup!"
|
"Ah.. Hiccup!"
|
||||||
]
|
]
|
||||||
room.send_notice(random.choice(replies))
|
room.send_notice(random.choice(replies))
|
||||||
|
|
||||||
|
|
||||||
|
def metal_cb(room, event):
|
||||||
|
logging.debug(event)
|
||||||
|
logging.debug("\m/")
|
||||||
|
room.send_notice("\m/")
|
||||||
|
|
||||||
def show_karma_cb(room, event):
|
def show_karma_cb(room, event):
|
||||||
allkkeys = rs.keys("partybot:k_" + event['room_id'] + "@*")
|
allkkeys = rs.keys("partybot:k_" + event['room_id'] + "@*")
|
||||||
|
|
||||||
|
@ -117,6 +135,8 @@ if __name__ == "__main__":
|
||||||
bot.add_handler(MRegexHandler("([\w]+)\s?(\-\-|\+\+)", karma_cb))
|
bot.add_handler(MRegexHandler("([\w]+)\s?(\-\-|\+\+)", karma_cb))
|
||||||
bot.add_handler(MCommandHandler("karma", show_karma_cb))
|
bot.add_handler(MCommandHandler("karma", show_karma_cb))
|
||||||
bot.add_handler(MCommandHandler("botsnack", botsnack_cb))
|
bot.add_handler(MCommandHandler("botsnack", botsnack_cb))
|
||||||
|
bot.add_handler(MCommandHandler("botdrink", botdrink_cb))
|
||||||
|
bot.add_handler(MRegexHandler("\s?\\m\/\s?", metal_cb))
|
||||||
|
|
||||||
bot.start_polling()
|
bot.start_polling()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue