This commit is contained in:
deathbybandaid 2019-09-20 15:53:52 -04:00
parent d163649b1c
commit 51847e7ebb
3 changed files with 6 additions and 7 deletions

View File

@ -186,12 +186,11 @@ def bot_command_rule_ai(bot, trigger):
}
searchreturn = SpiceBot.search.search(searchdict)
if not searchreturn:
bot.osd('I cannot find anything about that')
searchreturn = 'I cannot find anything about that'
if trigger_args[0].lower() == "where":
bot.osd(["[Location search for " + str(searchterm) + "]", str(searchreturn)])
else:
if trigger_args[0].lower() == "where":
bot.osd(["[Location search for " + str(searchterm) + "]", str(searchreturn)])
else:
bot.osd(["[Information search for '" + str(searchterm) + "']", str(searchreturn)])
bot.osd(["[Information search for '" + str(searchterm) + "']", str(searchreturn)])
return
elif trigger_args[0].lower() in ["can", "have"] and trigger_args[1].lower() in ["you"] and trigger_args[2].lower() in ["see", "seen"]:

View File

@ -310,7 +310,7 @@ def bot_dictcom_search(bot, trigger, botcom):
if not searchreturn:
botcom.dict["success"] = False
failmessage = ['I cannot find anything about that']
failmessage = ["[" + searchdict["query_type"].upper() + " 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

View File

@ -50,7 +50,7 @@ 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"].upper() + " search for '" + str(searchterm) + "'] " + 'I cannot find anything about that')
else:
bot.osd(["[" + botcom.dict["realcom"].upper() + " search for '" + str(searchterm) + "']", str(searchreturn)])