.BANCHO. Add 'tillerino' for /np during spectating and replays ("watching")

This commit is contained in:
russelg 2016-06-14 01:54:07 +08:00 committed by Nyo
parent 97262eda12
commit 6d93dd3633
1 changed files with 4 additions and 1 deletions

View File

@ -378,7 +378,7 @@ def tillerinoNp(fro, chan, message):
# Get URL from message # Get URL from message
if message[1] == "listening": if message[1] == "listening":
beatmapURL = str(message[3][1:]) beatmapURL = str(message[3][1:])
elif message[1] == "playing": elif message[1] == "playing" or message[1] == "watching":
beatmapURL = str(message[2][1:]) beatmapURL = str(message[2][1:])
else: else:
return False return False
@ -627,6 +627,9 @@ commands = [
}, { }, {
"trigger": "\x01ACTION is playing", "trigger": "\x01ACTION is playing",
"callback": tillerinoNp "callback": tillerinoNp
}, {
"trigger": "\x01ACTION is watching",
"callback": tillerinoNp
}, { }, {
"trigger": "!with", "trigger": "!with",
"callback": tillerinoMods, "callback": tillerinoMods,