Fixed kong callback for failed invocation

This commit is contained in:
Jacob Henry 2016-11-29 18:17:27 -05:00
parent 9207c371d7
commit 410164838c
1 changed files with 3 additions and 3 deletions

View File

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