~aleteoryx/ntalk

ee9acbcb67ccabc18a2f904790201fd32a348d31 — Aleteoryx a month ago 7a54772
make it a bit less of an ass
1 files changed, 5 insertions(+), 3 deletions(-)

M dee.py
M dee.py => dee.py +5 -3
@@ 7,6 7,7 @@ import re
from copy import copy

NAME = "dee"
MAN = 'https://aleteoryx.me/deeman.md'

### "AI" ###



@@ 19,12 20,13 @@ def act(what):
	botlib.send(f'{NAME} {msg}')

def help(nick):
	send(f'{nick}, my help is at https://aleteoryx.me/deeman.md')
	global MAN
	send(f'{nick}, my help is at {MAN}')

last_cmd = ('dee, roll d6', ['dee,', 'roll', 'd6'], ['dee', 'roll', 'd6'])

def handle_msg(nick, line, words, pwords):
	global NAME, last_cmd
	global NAME, MAN, last_cmd

	print(nick, line, words, pwords)
	og_data = copy(line), copy(words), copy(pwords)


@@ 53,7 55,7 @@ def handle_msg(nick, line, words, pwords):
	elif cmd in ('shuf', 'shuffle'):
		shuf(nick, words, pwords)
	else:
		send(f'{nick}, I would, if I knew how!')
		send(f'{nick}, I don\'t know how to do that! My help is at {MAN}')

def handle_action(line, words, pwords):
	pass