mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
test return
This commit is contained in:
parent
72fd1bb484
commit
4e00e303f8
@ -95,9 +95,8 @@ def prerun_query(t_command_type='module', t_command_subtype=None):
|
||||
@functools.wraps(function)
|
||||
def internal_prerun(bot, trigger, *args, **kwargs):
|
||||
|
||||
if t_command_subtype:
|
||||
if t_command_subtype != 'query':
|
||||
return
|
||||
if t_command_subtype != t_command_type:
|
||||
return
|
||||
|
||||
trigger_command_type = str(t_command_type)
|
||||
|
||||
|
||||
@ -19,7 +19,7 @@ def query_trigger(bot, trigger):
|
||||
|
||||
|
||||
@SpiceBot.events.check_ready([SpiceBot.events.BOT_COMMANDS])
|
||||
@SpiceBot.prerun_query('nickname', 'query')
|
||||
@SpiceBot.prerun_query('nickname', 'nickname')
|
||||
@sopel.module.nickname_commands('(.*)')
|
||||
def query_detection_nick(bot, trigger):
|
||||
|
||||
@ -85,7 +85,7 @@ def query_detection_nick(bot, trigger):
|
||||
|
||||
|
||||
@SpiceBot.events.check_ready([SpiceBot.events.BOT_COMMANDS])
|
||||
@SpiceBot.prerun_query('module', 'query')
|
||||
@SpiceBot.prerun_query('module', 'module')
|
||||
@sopel.module.rule('^\?(.*)')
|
||||
def query_detection(bot, trigger):
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user