mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 15:09:54 -05:00
test
This commit is contained in:
parent
1e4e244701
commit
d8e5fb017b
@ -37,12 +37,11 @@ class BotJSONCommands():
|
|||||||
|
|
||||||
self.valid_dictcom_dict = botread.json_to_dict(self.dir_to_scan, "Dictionary Commands", "SpiceBot_DictComs")
|
self.valid_dictcom_dict = botread.json_to_dict(self.dir_to_scan, "Dictionary Commands", "SpiceBot_DictComs")
|
||||||
|
|
||||||
for dict_from_file in list(self.valid_dictcom_dict.keys()):
|
for jsondict in list(self.valid_dictcom_dict.keys()):
|
||||||
|
|
||||||
|
dict_from_file = self.valid_dictcom_dict[jsondict]
|
||||||
|
|
||||||
try:
|
|
||||||
dict_from_file["comtype"] = "prefix"
|
dict_from_file["comtype"] = "prefix"
|
||||||
except Exception as e:
|
|
||||||
sys.stderr(str(dict_from_file))
|
|
||||||
|
|
||||||
# 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()):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user