21 lines
465 B
Python
21 lines
465 B
Python
# coding=utf8
|
|
from __future__ import unicode_literals, absolute_import, division, print_function
|
|
"""
|
|
This is the SpiceBot Events system.
|
|
"""
|
|
from sopel import plugin
|
|
|
|
from SpiceBot.SpiceBotCore import sb
|
|
|
|
|
|
@plugin.event("001")
|
|
@plugin.rule('.*')
|
|
def welcome_setup_start(bot, trigger):
|
|
sb.comms.ircbackend_initialize(bot)
|
|
|
|
|
|
@plugin.event(sb.events.BOT_CONNECTED)
|
|
@plugin.rule('.*')
|
|
def bot_events_start_set_hostmask(bot, trigger):
|
|
sb.comms.hostmask_set(bot)
|