mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 15:09:54 -05:00
test
This commit is contained in:
parent
a4f07f4ebe
commit
e08b528974
@ -27,7 +27,9 @@ def prerun(t_command_type='module', t_command_subtype=None):
|
|||||||
@functools.wraps(function)
|
@functools.wraps(function)
|
||||||
def internal_prerun(bot, trigger, *args, **kwargs):
|
def internal_prerun(bot, trigger, *args, **kwargs):
|
||||||
|
|
||||||
if t_command_type == "nickname" and not str(trigger.args[1]).lower().startswith(str(bot.nick).lower()):
|
if t_command_type == "nickname":
|
||||||
|
check_nick = spicemanip.main(trigger.args[1], 1).lower()
|
||||||
|
if check_nick != str(bot.nick).lower():
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
if not str(trigger.args[1]).startswith(tuple(botconfig.core.prefix_list)):
|
if not str(trigger.args[1]).startswith(tuple(botconfig.core.prefix_list)):
|
||||||
@ -105,7 +107,9 @@ def prerun_query(t_command_type='module', t_command_subtype=None):
|
|||||||
@functools.wraps(function)
|
@functools.wraps(function)
|
||||||
def internal_prerun(bot, trigger, *args, **kwargs):
|
def internal_prerun(bot, trigger, *args, **kwargs):
|
||||||
|
|
||||||
if t_command_type == "nickname" and not str(trigger.args[1]).lower().startswith(str(bot.nick).lower()):
|
if t_command_type == "nickname":
|
||||||
|
check_nick = spicemanip.main(trigger.args[1], 1).lower()
|
||||||
|
if check_nick != str(bot.nick).lower():
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
if not str(trigger.args[1]).startswith(tuple(botconfig.core.prefix_list)):
|
if not str(trigger.args[1]).startswith(tuple(botconfig.core.prefix_list)):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user