mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 06:59:53 -05:00
more
This commit is contained in:
parent
fc3411d610
commit
6b6881e207
@ -44,7 +44,7 @@ def bot_dictcom_process(bot, trigger, botcom):
|
|||||||
botcom.dict["dict"][botcom.dict["responsekey"]]["type"] = botcom.dict["dict"][botcom.dict["responsekey"]]["type"]
|
botcom.dict["dict"][botcom.dict["responsekey"]]["type"] = botcom.dict["dict"][botcom.dict["responsekey"]]["type"]
|
||||||
|
|
||||||
botcom.dict["nonstockoptions"] = []
|
botcom.dict["nonstockoptions"] = []
|
||||||
for command in botcom.dict["dict"].keys():
|
for command in list(botcom.dict["dict"].keys()):
|
||||||
if command not in ["?default", "validcoms", "type", "hardcoded_channel_block"]:
|
if command not in ["?default", "validcoms", "type", "hardcoded_channel_block"]:
|
||||||
botcom.dict["nonstockoptions"].append(command)
|
botcom.dict["nonstockoptions"].append(command)
|
||||||
|
|
||||||
@ -325,7 +325,7 @@ def bot_dictcom_reply_shared(bot, trigger, botcom):
|
|||||||
# display special options for this command
|
# display special options for this command
|
||||||
if "$specialoptions" in rply:
|
if "$specialoptions" in rply:
|
||||||
nonstockoptions = []
|
nonstockoptions = []
|
||||||
for command in botcom.dict["dict"].keys():
|
for command in list(botcom.dict["dict"].keys()):
|
||||||
if command not in ["?default", "validcoms", "contributors", "author", "type", "filepath", "filename", "hardcoded_channel_block", "description", "exampleresponse", "example", "usage", "privs"]:
|
if command not in ["?default", "validcoms", "contributors", "author", "type", "filepath", "filename", "hardcoded_channel_block", "description", "exampleresponse", "example", "usage", "privs"]:
|
||||||
nonstockoptions.append(command)
|
nonstockoptions.append(command)
|
||||||
nonstockoptions = spicemanip(nonstockoptions, "andlist")
|
nonstockoptions = spicemanip(nonstockoptions, "andlist")
|
||||||
@ -352,7 +352,7 @@ def bot_dictcom_gif(bot, trigger, botcom):
|
|||||||
queries = botcom.dict["dict"][botcom.dict["responsekey"]]["responses"]
|
queries = botcom.dict["dict"][botcom.dict["responsekey"]]["responses"]
|
||||||
|
|
||||||
# which api's are we using to search
|
# which api's are we using to search
|
||||||
if "queryapi" in botcom.dict["dict"].keys():
|
if "queryapi" in list(botcom.dict["dict"].keys()):
|
||||||
searchapis = botcom.dict["dict"][botcom.dict["responsekey"]]["queryapi"]
|
searchapis = botcom.dict["dict"][botcom.dict["responsekey"]]["queryapi"]
|
||||||
else:
|
else:
|
||||||
searchapis = list(SpiceBot.gif.valid_api.keys())
|
searchapis = list(SpiceBot.gif.valid_api.keys())
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user