This commit is contained in:
deathbybandaid 2019-06-20 15:17:39 -04:00
parent 1e4e244701
commit d8e5fb017b

View File

@ -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()):
try: dict_from_file = self.valid_dictcom_dict[jsondict]
dict_from_file["comtype"] = "prefix"
except Exception as e: dict_from_file["comtype"] = "prefix"
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()):