From cd1b8d88a87d62d1698ed8f972df3df03a6e8fd5 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Sun, 5 May 2019 22:38:14 -0400 Subject: [PATCH] repair prefix commands register --- sopel_modules/SpiceBot_CommandsQuery/CommandsQuery.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sopel_modules/SpiceBot_CommandsQuery/CommandsQuery.py b/sopel_modules/SpiceBot_CommandsQuery/CommandsQuery.py index a956ff0..438f727 100644 --- a/sopel_modules/SpiceBot_CommandsQuery/CommandsQuery.py +++ b/sopel_modules/SpiceBot_CommandsQuery/CommandsQuery.py @@ -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]