Merge branch 'master' of https://github.com/TheVillageIdiot2/waitonbot
This commit is contained in:
Jacob Henry 2016-11-29 23:21:43 +00:00
commit 81f8971226
1 changed files with 3 additions and 3 deletions

View File

@ -86,10 +86,9 @@ def handleKongMsg(slack, msg):
text = msg['text'] text = msg['text']
match = request_pattern.match(text) match = request_pattern.match(text)
#Make callback function
reply_callback = lambda response: reply(slack, msg, response, username="jukebot")
if match: if match:
#Make callback function
reply_callback = lambda response: reply(slack, msg, response, username="jukebot")
if match.group(1) == "list": if match.group(1) == "list":
response = "" response = ""
for title in getAllTitles(): for title in getAllTitles():
@ -105,5 +104,6 @@ def handleKongMsg(slack, msg):
else: else:
response = "Invoke as kong <songtitle:list>" response = "Invoke as kong <songtitle:list>"
reply_callback(response)