From fb15169c56a8465d8ca20395fad18fa7feecc183 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Fri, 4 Oct 2019 11:24:49 -0400 Subject: [PATCH] fix cache --- sopel_modules/SpiceBot/HTTP_Codes.py | 1 + sopel_modules/SpiceBot_Core_Tools/HTTP_Codes.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/sopel_modules/SpiceBot/HTTP_Codes.py b/sopel_modules/SpiceBot/HTTP_Codes.py index e2a4361..127ce4c 100644 --- a/sopel_modules/SpiceBot/HTTP_Codes.py +++ b/sopel_modules/SpiceBot/HTTP_Codes.py @@ -116,6 +116,7 @@ class Bothttpcodes(): "query": cachedict["query"], "basic": cachedict["basic"], "explanation": cachedict["explanation"], + "error": False } def check_cache(self, query): diff --git a/sopel_modules/SpiceBot_Core_Tools/HTTP_Codes.py b/sopel_modules/SpiceBot_Core_Tools/HTTP_Codes.py index 6296fe5..c75e0aa 100644 --- a/sopel_modules/SpiceBot_Core_Tools/HTTP_Codes.py +++ b/sopel_modules/SpiceBot_Core_Tools/HTTP_Codes.py @@ -32,4 +32,7 @@ def bot_command_http_codes(bot, trigger, botcom): elif query == "69": message.extend(["Oral Fixation", "Round and Round they go, where they stop: nobody knows"]) + else: + message.extend([result["basic"], result["explanation"]]) + bot.osd(message)