from chatexchange.client import Client
from random import choice
from PyDictionary import PyDictionary
import re
dictionary = PyDictionary()
email = "****"
password = "****"
se_chat = Client("meta.stackexchange.com")
se_chat.login(email, password)
snacks = [...]
poems = [...]
cue = "ab: "
access = [849287, 773001]
food_talked = []
def reply(command, event):
if command.startswith('snack'):
user = command.split(' ', 1)[-1]
room.send_message(f'@{user} Here\'s some {choice(snacks)} for you.')
elif 'poem' in re.findall(r'\b\S+\b', command.lower()):