HAA
Merge branch 'master' of https://github.com/TheVillageIdiot2/waitonbot
This commit is contained in:
commit
81f8971226
4
kong.py
4
kong.py
|
|
@ -86,10 +86,9 @@ def handleKongMsg(slack, msg):
|
||||||
text = msg['text']
|
text = msg['text']
|
||||||
match = request_pattern.match(text)
|
match = request_pattern.match(text)
|
||||||
|
|
||||||
if match:
|
|
||||||
#Make callback function
|
#Make callback function
|
||||||
reply_callback = lambda response: reply(slack, msg, response, username="jukebot")
|
reply_callback = lambda response: reply(slack, msg, response, username="jukebot")
|
||||||
|
if match:
|
||||||
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)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue