SpiceBot-migrated/sopel_modules/SpiceBot_Core_Processing/Server.py
2019-07-04 08:26:35 -04:00

16 lines
426 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.dict["host"] = str(trigger.sender).lower()
bot.say(str(SpiceBot.server.host), "deathbybandaid")