Merge pull request #141 from deathbybandaid/development

fix cache
This commit is contained in:
Deathbybandaid 2019-10-04 11:28:31 -04:00 committed by GitHub
commit 2c2beb7e9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)