mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 15:09:54 -05:00
CommandsQuery/BotEvents adjustments for consistancy
This commit is contained in:
parent
eff28605a0
commit
1604924a48
@ -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"]):
|
||||||
|
|||||||
@ -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):
|
||||||
|
|||||||
@ -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:
|
||||||
|
|||||||
@ -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'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user