From 221b740bcec13a1c8598bfbbbe72b01850f2ced6 Mon Sep 17 00:00:00 2001 From: hydraz Date: Fri, 11 Oct 2019 13:11:02 -0300 Subject: [PATCH] add a !jape = !card command --- botcmd.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/botcmd.py b/botcmd.py index c3e1832..703aa84 100644 --- a/botcmd.py +++ b/botcmd.py @@ -143,6 +143,8 @@ def usage(command): return 'Usage: !kick ' elif command[0] == 'card': return 'Usage: [!card] ...' + elif command[0] == 'jape': + return 'Usage: [!jape] ...' 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