IRC Bot package #83

Closed
max wants to merge 16 commits from pkg-ircbot into master
Showing only changes of commit d54bcec082 - Show all commits

View file

@ -0,0 +1,8 @@
import main
import random
class EventHandler(main.EventHandler):
def on_message(bot, e):
if e.message == '.roll':
msg = f'{e.sender}: rolled a {random.randint(1, 6)}'
bot.send_message(e.channel, msg)