Esempio n. 1
0
def minecraft_player(bot,msg):
    bot.say(msg.channel, 'Getting player info... ')
    player = re.match('^!minecraft_player(.*)$', msg.text, re.I)


load_config()

buch = SlackBot(slack_api_token)
buch.show_typing = True

buch.add_event_listener('open', on_open)
buch.add_event_listener('message', listen_for_keywords)
buch.add_event_listener('presence_change', greet_people)
buch.add_event_listener('message', chatbot)

buch.add_command('reload', reload_command)
buch.add_command('say', say_command)
buch.add_command('yell', yell_command)
#buch.add_command('refrigerators', refrigerators_command)
#buch.add_command('totinos', totinos_command)
#buch.add_command('kris', kris_command)
#buch.add_command('grumble', grumble_command)
#buch.add_command('clickbait', clickbait_command)
#buch.add_command('lookup', lookup_command)
#buch.add_command('shutup', shutup_command)
#buch.add_command('speakup', speakup_command)
#buch.add_command('markov', markov_command)
#buch.add_command('eric', eric_command)

#Crapbot Specific Commands #
buch.add_command('chatenabled', chatenabled)