mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 06:59:53 -05:00
more tweaks
This commit is contained in:
parent
0362e13d7c
commit
cecd23556b
@ -44,7 +44,7 @@ def prerun(t_command_type='module', t_command_subtype=None):
|
|||||||
check_nick = spicemanip(trigger.args[1], 1).lower()
|
check_nick = spicemanip(trigger.args[1], 1).lower()
|
||||||
if check_nick != str(bot.nick).lower():
|
if check_nick != str(bot.nick).lower():
|
||||||
return
|
return
|
||||||
else:
|
elif t_command_type == "module":
|
||||||
if not str(trigger.args[1]).startswith(tuple(botconfig.core.prefix_list)):
|
if not str(trigger.args[1]).startswith(tuple(botconfig.core.prefix_list)):
|
||||||
return
|
return
|
||||||
|
|
||||||
@ -133,7 +133,7 @@ def prerun_query(t_command_type='module', t_command_subtype=None):
|
|||||||
check_nick = spicemanip(trigger.args[1], 1).lower()
|
check_nick = spicemanip(trigger.args[1], 1).lower()
|
||||||
if check_nick != str(bot.nick).lower():
|
if check_nick != str(bot.nick).lower():
|
||||||
return
|
return
|
||||||
else:
|
elif t_command_type == "module":
|
||||||
if not str(trigger.args[1]).startswith(tuple(botconfig.core.prefix_list)):
|
if not str(trigger.args[1]).startswith(tuple(botconfig.core.prefix_list)):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user