This commit is contained in:
deathbybandaid 2019-09-20 15:57:53 -04:00
parent 51847e7ebb
commit 41ad754329
2 changed files with 4 additions and 4 deletions

View File

@ -310,12 +310,12 @@ def bot_dictcom_search(bot, trigger, botcom):
if not searchreturn:
botcom.dict["success"] = False
failmessage = ["[" + searchdict["query_type"].upper() + " search for '" + str(searchterm) + "']" + 'I cannot find anything about that']
failmessage = ["[" + searchdict["query_type"].title() + " search for '" + str(searchterm) + "']" + 'I cannot find anything about that']
if botcom.dict["dict"][botcom.dict["responsekey"]]["search_fail"]:
failmessage = botcom.dict["dict"][botcom.dict["responsekey"]]["search_fail"]
botcom.dict["dict"][botcom.dict["responsekey"]]["responses"] = failmessage
else:
botcom.dict["dict"][botcom.dict["responsekey"]]["responses"] = ["[Search for '" + str(searchterm) + "'] " + str(searchreturn)]
botcom.dict["dict"][botcom.dict["responsekey"]]["responses"] = ["[" + searchdict["query_type"].title() + " search for '" + str(searchterm) + "'] " + str(searchreturn)]
botcom.dict["specified"] = False
bot_dictcom_reply_shared(bot, trigger, botcom)

View File

@ -50,9 +50,9 @@ def gifapi_triggers(bot, trigger, botcom):
searchreturn = SpiceBot.search.search(searchdict)
if not searchreturn:
SpiceBot.messagelog.messagelog_error(botcom.dict["log_id"], "[" + botcom.dict["realcom"].upper() + " search for '" + str(searchterm) + "'] " + 'I cannot find anything about that')
SpiceBot.messagelog.messagelog_error(botcom.dict["log_id"], "[" + botcom.dict["realcom"].title() + " search for '" + str(searchterm) + "'] " + 'I cannot find anything about that')
else:
bot.osd(["[" + botcom.dict["realcom"].upper() + " search for '" + str(searchterm) + "']", str(searchreturn)])
bot.osd(["[" + botcom.dict["realcom"].title() + " search for '" + str(searchterm) + "']", str(searchreturn)])
@SpiceBot.prerun('module')