CommandsQuery/BotEvents adjustments for consistancy

This commit is contained in:
deathbybandaid 2019-05-02 19:42:15 -04:00
parent eff28605a0
commit 1604924a48
4 changed files with 9 additions and 9 deletions

View File

@ -2,15 +2,15 @@
from __future__ import unicode_literals, absolute_import, division, print_function from __future__ import unicode_literals, absolute_import, division, print_function
from sopel import module import sopel.module
from sopel.tools import stderr from sopel.tools import stderr
from .BotEvents import check_bot_events, startup_bot_event, set_bot_event from .BotEvents import check_bot_events, startup_bot_event, set_bot_event
import time import time
@module.event('001') @sopel.module.event('001')
@module.rule('.*') @sopel.module.rule('.*')
def bot_startup_connection(bot, trigger): def bot_startup_connection(bot, trigger):
if check_bot_events(bot, ["startup_complete"]): if check_bot_events(bot, ["startup_complete"]):

View File

@ -2,14 +2,14 @@
from __future__ import unicode_literals, absolute_import, division, print_function from __future__ import unicode_literals, absolute_import, division, print_function
from sopel import module import sopel.module
from sopel.tools import stderr from sopel.tools import stderr
from .BotEvents import set_bot_event, check_bot_startup from .BotEvents import set_bot_event, check_bot_startup
@module.event('001') @sopel.module.event('001')
@module.rule('.*') @sopel.module.rule('.*')
def bot_startup_complete(bot, trigger): def bot_startup_complete(bot, trigger):
while not check_bot_startup(bot): while not check_bot_startup(bot):

View File

@ -3,7 +3,7 @@
from __future__ import unicode_literals, absolute_import, division, print_function from __future__ import unicode_literals, absolute_import, division, print_function
import sopel import sopel
from sopel import module import sopel.module
from sopel.tools import stderr from sopel.tools import stderr
import os import os
@ -150,7 +150,7 @@ def setup_thread(bot):
set_bot_event(bot, "Sopel-CommandsQuery") set_bot_event(bot, "Sopel-CommandsQuery")
@module.rule('^\?(.*)') @sopel.module.rule('^\?(.*)')
def query_detection(bot, trigger): def query_detection(bot, trigger):
while "Sopel-CommandsQuery" not in bot.memory: while "Sopel-CommandsQuery" not in bot.memory:

View File

@ -5,7 +5,7 @@ Sopel Commands Query responds to ? to display commands matching patterns
""" """
from __future__ import unicode_literals, absolute_import, division, print_function from __future__ import unicode_literals, absolute_import, division, print_function
from .commandsquery import * from .CommandsQuery import *
__author__ = 'Sam Zick' __author__ = 'Sam Zick'
__email__ = 'sam@deathbybandaid.net' __email__ = 'sam@deathbybandaid.net'