mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
test
This commit is contained in:
parent
bb3c22ca00
commit
16f019b5b6
@ -0,0 +1,7 @@
|
||||
{
|
||||
"?default": {
|
||||
"type": "search",
|
||||
"responses": "spiceworks",
|
||||
"search_fail": ["No Spiceworks forum posts found!"],
|
||||
},
|
||||
}
|
||||
@ -1,7 +0,0 @@
|
||||
{
|
||||
"?default": {
|
||||
"type": "search",
|
||||
"responses": "test",
|
||||
"search_fail": ["Test search failed"],
|
||||
},
|
||||
}
|
||||
@ -298,7 +298,7 @@ def bot_dictcom_search(bot, trigger, botcom):
|
||||
botcom.dict["dict"][botcom.dict["responsekey"]]["responses"] = botcom.dict["dict"][botcom.dict["responsekey"]]["blank_fail"]
|
||||
return bot_dictcom_reply_shared(bot, trigger, botcom)
|
||||
elif botcom.dict["dict"][botcom.dict["responsekey"]]["blank_required"] and botcom.dict["completestring"]:
|
||||
searchterm = [botcom.dict["completestring"]]
|
||||
searchterm = [botcom.dict["dict"][botcom.dict["responsekey"]]["responses"] + " " + botcom.dict["completestring"]]
|
||||
else:
|
||||
searchterm = botcom.dict["dict"][botcom.dict["responsekey"]]["responses"]
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user