@@ 46,6 46,8 @@ def handle_msg(nick, line, words, pwords):
if cmd == 'help':
help(nick)
+ elif cmd not in ('roll', 'pick', 'shuf', 'shuffle'):
+ send(f'{nick}, I don\'t know how to do that! My help is at {MAN}')
elif len(pwords) < 1:
send(f'{nick}, {cmd} what?')
elif cmd == 'roll':
@@ 54,8 56,7 @@ def handle_msg(nick, line, words, pwords):
pick(nick, words, pwords)
elif cmd in ('shuf', 'shuffle'):
shuf(nick, words, pwords)
- else:
- send(f'{nick}, I don\'t know how to do that! My help is at {MAN}')
+
def handle_action(line, words, pwords):
pass
@@ 158,7 159,7 @@ def parse_dice(nick, words):
return count, last_dice, offset
- raise DiceParseException(f'roll what?')
+ raise DiceParseException(f'I don\'t know how to roll that!')
def dice(nick, words, pwords):
result = nick