Added mod_chat_sanitizer for messages deletion
This commit is contained in:
10
config.py
10
config.py
@@ -1,6 +1,7 @@
|
||||
''' Config reader '''
|
||||
|
||||
import json
|
||||
import utils
|
||||
|
||||
def read_config(path: str) -> dict | None:
|
||||
''' Read config '''
|
||||
@@ -30,11 +31,10 @@ def read_config(path: str) -> dict | None:
|
||||
required_fields = {
|
||||
'login': [str]
|
||||
}
|
||||
optional_fields = {
|
||||
'mod_basic': ([bool], True),
|
||||
'mod_eternal_online': ([bool], False),
|
||||
'mod_video_downloader': ([bool], False)
|
||||
}
|
||||
optional_fields = {}
|
||||
for mod_name in utils.get_all_mods():
|
||||
optional_fields[mod_name] = ([bool], False)
|
||||
optional_fields['mod_basic'] = ([bool], True)
|
||||
try:
|
||||
j = None
|
||||
with open(path, 'r') as f:
|
||||
|
||||
Reference in New Issue
Block a user