depot/packages/servers/ircbot/hooks/reload.py

8 lines
214 B
Python
Raw Permalink Normal View History

import main
class EventHandler(main.EventHandler):
def on_message(bot, e):
if e.message == '.reload':
bot.send_message(e.channel, 'reloading hooks...')
bot.emit('reload-hooks')