From 2c125c7879b75ec4df9fb90ecdb50a35c7b7c384 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Sat, 4 May 2019 17:20:21 -0400 Subject: [PATCH] clean up logic --- sopel_modules/SpiceBot_GifSearch/gifsearch.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sopel_modules/SpiceBot_GifSearch/gifsearch.py b/sopel_modules/SpiceBot_GifSearch/gifsearch.py index a12c189..28f9b69 100644 --- a/sopel_modules/SpiceBot_GifSearch/gifsearch.py +++ b/sopel_modules/SpiceBot_GifSearch/gifsearch.py @@ -85,9 +85,9 @@ def setup_thread(bot): valid_gif_api_dict[gif_api]["apikey"] = None bot.memory["SpiceBot_GifSearch"]['valid_gif_api_dict'][gif_api] = valid_gif_api_dict[gif_api] - commandsquery_register_type(bot, "prefix_command") - for prefix_command in bot.memory["SpiceBot_GifSearch"]['valid_gif_api_dict'].keys(): - commandsquery_register(bot, "prefix_command", prefix_command) + commandsquery_register_type(bot, "prefix") + for prefixcommand in bot.memory["SpiceBot_GifSearch"]['valid_gif_api_dict'].keys(): + commandsquery_register(bot, "prefix", prefixcommand) set_bot_event(bot, "SpiceBot_GifSearch")