~aleteoryx/ntalk

b756b2ce1f6c6997986193c23c3ed26c1e8ca7d3 — Aleteoryx a month ago ee9acbc
make it a bit less of an ass, more
1 files changed, 4 insertions(+), 3 deletions(-)

M dee.py
M dee.py => dee.py +4 -3
@@ 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