mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 06:59:53 -05:00
fix
This commit is contained in:
parent
e7d9996c64
commit
60383c11c8
@ -41,6 +41,8 @@ class BotDictCommands():
|
|||||||
|
|
||||||
dict_from_file = self.valid_dictcom_dict[jsondict]
|
dict_from_file = self.valid_dictcom_dict[jsondict]
|
||||||
|
|
||||||
|
dict_from_file["comtype"] = "prefix"
|
||||||
|
|
||||||
# default command to filename
|
# default command to filename
|
||||||
if "validcoms" not in list(dict_from_file.keys()):
|
if "validcoms" not in list(dict_from_file.keys()):
|
||||||
dict_from_file["validcoms"] = [dict_from_file["filename"]]
|
dict_from_file["validcoms"] = [dict_from_file["filename"]]
|
||||||
@ -65,8 +67,6 @@ class BotDictCommands():
|
|||||||
if "type" not in list(dict_from_file.keys()) or dict_from_file["type"] not in self.valid_com_types:
|
if "type" not in list(dict_from_file.keys()) or dict_from_file["type"] not in self.valid_com_types:
|
||||||
dict_from_file["type"] = 'simple'
|
dict_from_file["type"] = 'simple'
|
||||||
|
|
||||||
dict_from_file["comtype"] = "prefix" + dict_from_file["type"]
|
|
||||||
|
|
||||||
# Don't process these.
|
# Don't process these.
|
||||||
keysprocessed = []
|
keysprocessed = []
|
||||||
keysprocessed.extend(["validcoms", "filepath", "filename", "comtype"])
|
keysprocessed.extend(["validcoms", "filepath", "filename", "comtype"])
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user