mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 06:59:53 -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):
|
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):
|
if not isinstance(validcoms, list):
|
||||||
validcoms = [validcoms]
|
validcoms = [validcoms]
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user