This commit is contained in:
deathbybandaid 2022-02-10 08:48:04 -05:00
parent c4c0ca43ed
commit ffd24d6b32
2 changed files with 4 additions and 4 deletions

View File

@ -15,8 +15,8 @@ import time
class Events(object): class Events(object):
"""A dynamic listing of all the notable Bot numeric events. """A dynamic listing of all the notable Bot numeric events.
Events will be assigned a 4-digit number above 1000. Events will be assigned a 4-digit number above 1000.
This allows you to do, ``@module.event(events.BOT_WELCOME)```` This allows you to do, ``@plugin.event(events.BOT_WELCOME)````
Triggers handled by this module will be processed immediately. Triggers handled by this plugin will be processed immediately.
Others will be placed into a queue. Others will be placed into a queue.
Triggers will be logged by ID and content Triggers will be logged by ID and content
""" """

View File

@ -84,7 +84,7 @@ def events_thread(bot):
@plugin.rule('.*') @plugin.rule('.*')
def bot_events_start(bot, trigger): def bot_events_start(bot, trigger):
"""This stage is redundant, but shows the system is working.""" """This stage is redundant, but shows the system is working."""
sb.events.trigger(bot, sb.events.BOT_READY, "Ready To Process module setup procedures") sb.events.trigger(bot, sb.events.BOT_READY, "Ready To Process plugin setup procedures")
"""Here, we wait until we are in at least one channel""" """Here, we wait until we are in at least one channel"""
while not len(list(bot.channels.keys())) > 0: while not len(list(bot.channels.keys())) > 0:
@ -97,4 +97,4 @@ def bot_events_start(bot, trigger):
@plugin.rule('.*') @plugin.rule('.*')
def bot_events_startup_complete(bot, trigger): def bot_events_startup_complete(bot, trigger):
"""All events registered as required for startup have completed""" """All events registered as required for startup have completed"""
sb.events.trigger(bot, sb.events.BOT_LOADED, "All registered modules setup procedures have completed") sb.events.trigger(bot, sb.events.BOT_LOADED, "All registered plugins setup procedures have completed")