mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
repair prefix commands register
This commit is contained in:
parent
2fda1a0b81
commit
cd1b8d88a8
@ -167,6 +167,9 @@ def bot_events_complete(bot, trigger):
|
||||
|
||||
def commandsquery_register(bot, command_type, validcoms, aliasfor=None):
|
||||
|
||||
if 'SpiceBot_CommandsQuery' not in bot.memory:
|
||||
bot.memory['SpiceBot_CommandsQuery'] = {"counts": {}, "commands": {}}
|
||||
|
||||
if not isinstance(validcoms, list):
|
||||
validcoms = [validcoms]
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user