mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
module patch
This commit is contained in:
parent
c8a162d778
commit
76d4c99ec1
@ -223,6 +223,13 @@ class BotRead():
|
||||
if "hardcoded_channel_block" not in list(dict_from_file.keys()):
|
||||
dict_from_file["hardcoded_channel_block"] = []
|
||||
|
||||
# ensure creation of '?default'
|
||||
if "?default" not in list(dict_from_file.keys()):
|
||||
dict_from_file["?default"] = {}
|
||||
|
||||
if "responses" not in list(dict_from_file["?default"].keys()):
|
||||
dict_from_file["?default"]["responses"] = []
|
||||
|
||||
return dict_from_file
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user