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