mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 15:09:54 -05:00
test
This commit is contained in:
parent
acf1f8ebe5
commit
70440a697b
@ -439,6 +439,9 @@ def trigger_cant_run(bot, trigger, botcom, message=None):
|
|||||||
|
|
||||||
def updatable_content(bot, botcom, trigger):
|
def updatable_content(bot, botcom, trigger):
|
||||||
# commands that can be updated
|
# commands that can be updated
|
||||||
|
if "updates_enabled" not in list(botcom.dict["dict"][botcom.dict["responsekey"]].keys()):
|
||||||
|
botcom.dict["dict"][botcom.dict["responsekey"]]["updates_enabled"] = False
|
||||||
|
|
||||||
if botcom.dict["dict"][botcom.dict["responsekey"]]["updates_enabled"]:
|
if botcom.dict["dict"][botcom.dict["responsekey"]]["updates_enabled"]:
|
||||||
customresponses = []
|
customresponses = []
|
||||||
if botcom.dict["dict"][botcom.dict["responsekey"]]["updates_enabled"] == "shared":
|
if botcom.dict["dict"][botcom.dict["responsekey"]]["updates_enabled"] == "shared":
|
||||||
@ -473,12 +476,24 @@ def special_handling(botcom):
|
|||||||
posscom = command
|
posscom = command
|
||||||
botcom.dict["responsekey"] = posscom
|
botcom.dict["responsekey"] = posscom
|
||||||
|
|
||||||
|
botcom = dictkey_defaults(botcom)
|
||||||
|
|
||||||
if botcom.dict["responsekey"] != "?default":
|
if botcom.dict["responsekey"] != "?default":
|
||||||
botcom.dict['args'] = spicemanip(botcom.dict['args'], '2+', 'list')
|
botcom.dict['args'] = spicemanip(botcom.dict['args'], '2+', 'list')
|
||||||
|
|
||||||
return botcom
|
return botcom
|
||||||
|
|
||||||
|
|
||||||
|
def dictkey_defaults(botcom):
|
||||||
|
if botcom.dict["responsekey"] not in list(botcom.dict["dict"].keys()):
|
||||||
|
botcom.dict["dict"][botcom.dict["responsekey"]] = {}
|
||||||
|
if "selection_allowed" not in list(botcom.dict["dict"][botcom.dict["responsekey"]].keys()):
|
||||||
|
botcom.dict["dict"][botcom.dict["responsekey"]]["selection_allowed"] = True
|
||||||
|
if "responses" not in list(botcom.dict["dict"][botcom.dict["responsekey"]].keys()):
|
||||||
|
botcom.dict["dict"][botcom.dict["responsekey"]]["responses"] = []
|
||||||
|
return botcom
|
||||||
|
|
||||||
|
|
||||||
def trigger_hyphen_args(botcom):
|
def trigger_hyphen_args(botcom):
|
||||||
|
|
||||||
hyphen_args = []
|
hyphen_args = []
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user