mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-12 22:49:53 -05:00
update commandsquery
This commit is contained in:
parent
b0d4f7005b
commit
1695bef55b
@ -170,7 +170,6 @@ def commandsquery_register(bot, command_type, validcoms, aliasfor=None):
|
|||||||
if not isinstance(validcoms, list):
|
if not isinstance(validcoms, list):
|
||||||
validcoms = [validcoms]
|
validcoms = [validcoms]
|
||||||
|
|
||||||
if command_type not in bot.memory['SpiceBot_CommandsQuery'].keys():
|
|
||||||
if command_type not in bot.memory['SpiceBot_CommandsQuery']['counts'].keys():
|
if command_type not in bot.memory['SpiceBot_CommandsQuery']['counts'].keys():
|
||||||
bot.memory['SpiceBot_CommandsQuery']['counts'][command_type] = 0
|
bot.memory['SpiceBot_CommandsQuery']['counts'][command_type] = 0
|
||||||
if command_type not in bot.memory['SpiceBot_CommandsQuery']['commands'].keys():
|
if command_type not in bot.memory['SpiceBot_CommandsQuery']['commands'].keys():
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user