mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 06:59:53 -05:00
test
This commit is contained in:
parent
a65b7dcfae
commit
0c5b19e6d2
@ -5,8 +5,6 @@ This is the SpiceBot Server system.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from .Config import config as botconfig
|
from .Config import config as botconfig
|
||||||
from .osd import SpiceBot_OSD
|
|
||||||
from .Kick import SpiceBot_Kick
|
|
||||||
|
|
||||||
|
|
||||||
class BotServer():
|
class BotServer():
|
||||||
@ -20,16 +18,12 @@ class BotServer():
|
|||||||
}
|
}
|
||||||
self.isupport = {
|
self.isupport = {
|
||||||
"TARGMAX": {
|
"TARGMAX": {
|
||||||
"KICK": botconfig.SpiceBot_Kick.kick,
|
"KICK": 1,
|
||||||
'NOTICE': botconfig.SpiceBot_OSD.notice,
|
'NOTICE': 1,
|
||||||
'PRIVMSG': botconfig.SpiceBot_OSD.privmsg,
|
'PRIVMSG': 1,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
def setup_isupport(self):
|
|
||||||
botconfig.define_section("SpiceBot_OSD", SpiceBot_OSD, validate=False)
|
|
||||||
botconfig.define_section("SpiceBot_Kick", SpiceBot_Kick, validate=False)
|
|
||||||
|
|
||||||
def rpl_welcome(self, trigger):
|
def rpl_welcome(self, trigger):
|
||||||
self.dict["host"] = str(trigger.sender).lower()
|
self.dict["host"] = str(trigger.sender).lower()
|
||||||
|
|
||||||
|
|||||||
@ -137,6 +137,7 @@ def setup_osd(bot):
|
|||||||
# verify config settings for server
|
# verify config settings for server
|
||||||
logs.log('SpiceBot_OSD', "Checking for config settings")
|
logs.log('SpiceBot_OSD', "Checking for config settings")
|
||||||
bot.config.define_section("SpiceBot_OSD", SpiceBot_OSD, validate=False)
|
bot.config.define_section("SpiceBot_OSD", SpiceBot_OSD, validate=False)
|
||||||
|
botconfig.define_section("SpiceBot_OSD", SpiceBot_OSD, validate=False)
|
||||||
|
|
||||||
|
|
||||||
def setup_kick(bot):
|
def setup_kick(bot):
|
||||||
@ -148,6 +149,7 @@ def setup_kick(bot):
|
|||||||
# verify config settings for server
|
# verify config settings for server
|
||||||
logs.log('SpiceBot_Kick', "Checking for config settings")
|
logs.log('SpiceBot_Kick', "Checking for config settings")
|
||||||
bot.config.define_section("SpiceBot_Kick", SpiceBot_Kick, validate=False)
|
bot.config.define_section("SpiceBot_Kick", SpiceBot_Kick, validate=False)
|
||||||
|
botconfig.define_section("SpiceBot_Kick", SpiceBot_Kick, validate=False)
|
||||||
|
|
||||||
|
|
||||||
def setup_gif(bot):
|
def setup_gif(bot):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user