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