mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
27 lines
667 B
Python
27 lines
667 B
Python
# coding=utf8
|
|
from __future__ import unicode_literals, absolute_import, division, print_function
|
|
"""
|
|
This is the SpiceBot Channels system.
|
|
"""
|
|
import sopel
|
|
|
|
import sopel_modules.SpiceBot as SpiceBot
|
|
|
|
|
|
@sopel.module.event(SpiceBot.events.RPL_WELCOME)
|
|
@sopel.module.rule('.*')
|
|
def server_name(bot, trigger):
|
|
SpiceBot.server.rpl_welcome(trigger)
|
|
|
|
|
|
@sopel.module.event(SpiceBot.events.RPL_ISUPPORT)
|
|
@sopel.module.rule('.*')
|
|
def parse_event_005(bot, trigger):
|
|
SpiceBot.server.parse_reply_isupport(trigger)
|
|
|
|
|
|
@sopel.module.event(SpiceBot.events.RPL_MYINFO)
|
|
@sopel.module.rule('.*')
|
|
def parse_event_004(bot, trigger):
|
|
SpiceBot.server.parse_reply_myinfo(trigger)
|