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):
"""A dynamic listing of all the notable Bot numeric events.
Events will be assigned a 4-digit number above 1000.
This allows you to do, ``@module.event(events.BOT_WELCOME)````
Triggers handled by this module will be processed immediately.
This allows you to do, ``@plugin.event(events.BOT_WELCOME)````
Triggers handled by this plugin will be processed immediately.
Others will be placed into a queue.
Triggers will be logged by ID and content
"""

View File

@ -84,7 +84,7 @@ def events_thread(bot):
@plugin.rule('.*')
def bot_events_start(bot, trigger):
"""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"""
while not len(list(bot.channels.keys())) > 0:
@ -97,4 +97,4 @@ def bot_events_start(bot, trigger):
@plugin.rule('.*')
def bot_events_startup_complete(bot, trigger):
"""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")