1
0
Fork 0

add a !jape = !card command

This commit is contained in:
hydraz 2019-10-11 13:11:02 -03:00 committed by Juhani Krekelä
parent b936e3b880
commit 221b740bce
1 changed files with 4 additions and 2 deletions

View File

@ -143,6 +143,8 @@ def usage(command):
return 'Usage: !kick <nick>'
elif command[0] == 'card':
return 'Usage: [!card] <number[,number,...]> ...'
elif command[0] == 'jape':
return 'Usage: [!jape] <number[,number,...]> ...'
elif command[0] == 'deck':
return 'Subcommands: !deck add | remove | list'
elif command[0] == 'bot':
@ -329,8 +331,8 @@ def parse_command(message, nick, irc):
else:
send_event((events.limit, gameloop.limit_types.points, num))
elif c == '!card' or all(valid_choice(i) for i in message):
if c == '!card':
elif c == '!card' or c == '!jape' or all(valid_choice(i) for i in message):
if c == '!card' or c == '!jape':
args = message[1:]
else:
args = message