mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
test
This commit is contained in:
parent
d163649b1c
commit
51847e7ebb
@ -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"]:
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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)])
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user