mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 06:59:53 -05:00
ready
This commit is contained in:
parent
9051cb084e
commit
a0a4ade9c3
@ -52,4 +52,4 @@ def setup(bot):
|
|||||||
botconfig.define_section("SpiceBot_Update", SpiceBot_Update_MainSection, validate=False)
|
botconfig.define_section("SpiceBot_Update", SpiceBot_Update_MainSection, validate=False)
|
||||||
|
|
||||||
logs.log('SpiceBot_StartupMonologue', "Initial Setup processing")
|
logs.log('SpiceBot_StartupMonologue', "Initial Setup processing")
|
||||||
events.startup_add([events.BOT_STARTUPMONOLOGUE_CHANNELS, events.BOT_STARTUPMONOLOGUE_COMMANDSQUERY, events.BOT_STARTUPMONOLOGUE_CONNECTED])
|
events.startup_add([events.BOT_STARTUPMONOLOGUE_CHANNELS, events.BOT_STARTUPMONOLOGUE_COMMANDS, events.BOT_STARTUPMONOLOGUE_CONNECTED])
|
||||||
|
|||||||
@ -8,7 +8,7 @@ import sopel
|
|||||||
import sopel_modules.SpiceBot as SpiceBot
|
import sopel_modules.SpiceBot as SpiceBot
|
||||||
|
|
||||||
|
|
||||||
@sopel.module.event(SpiceBot.events.BOT_LOADED)
|
@sopel.module.event(SpiceBot.events.BOT_READY)
|
||||||
@sopel.module.rule('.*')
|
@sopel.module.rule('.*')
|
||||||
def bot_events_complete(bot, trigger):
|
def bot_events_complete(bot, trigger):
|
||||||
|
|
||||||
|
|||||||
@ -40,7 +40,7 @@ def bot_startup_monologue_commands(bot, trigger):
|
|||||||
displayval = "There are " + str(availablecomsnum) + " commands available in " + str(availablecomsfiles) + " files."
|
displayval = "There are " + str(availablecomsnum) + " commands available in " + str(availablecomsfiles) + " files."
|
||||||
SpiceBot.startupmonologue.dict["commands"] = displayval
|
SpiceBot.startupmonologue.dict["commands"] = displayval
|
||||||
SpiceBot.logs.log('SpiceBot_StartupMonologue', displayval)
|
SpiceBot.logs.log('SpiceBot_StartupMonologue', displayval)
|
||||||
SpiceBot.events.trigger(bot, SpiceBot.events.BOT_STARTUPMONOLOGUE_COMMANDSQUERY, "SpiceBot_StartupMonologue")
|
SpiceBot.events.trigger(bot, SpiceBot.events.BOT_STARTUPMONOLOGUE_COMMANDS, "SpiceBot_StartupMonologue")
|
||||||
|
|
||||||
|
|
||||||
@sopel.module.event(SpiceBot.events.BOT_LOADED)
|
@sopel.module.event(SpiceBot.events.BOT_LOADED)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user