repair prefix commands register

This commit is contained in:
deathbybandaid 2019-05-05 22:38:14 -04:00
parent 2fda1a0b81
commit cd1b8d88a8

View File

@ -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]