fix cache

This commit is contained in:
deathbybandaid 2019-10-04 11:24:49 -04:00
parent 422165c01b
commit fb15169c56
2 changed files with 4 additions and 0 deletions

View File

@ -116,6 +116,7 @@ class Bothttpcodes():
"query": cachedict["query"],
"basic": cachedict["basic"],
"explanation": cachedict["explanation"],
"error": False
}
def check_cache(self, query):

View File

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