Skip to content

Commit 163aee6

Browse files
committed
Sorted config vars
1 parent 10e38ee commit 163aee6

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

core/config.py

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
class ConfigManager(ConfigManagerABC):
9-
"""Class that manages a cached configuration"""
109

1110
allowed_to_change_in_command = {
1211
# activity
@@ -24,15 +23,27 @@ class ConfigManager(ConfigManagerABC):
2423
}
2524

2625
internal_keys = {
27-
'snippets', 'aliases', 'blocked',
28-
'notification_squad', 'subscriptions',
29-
'closures', 'activity_message', 'activity_type'
26+
# activity
27+
'activity_message', 'activity_type',
28+
# moderation
29+
'blocked',
30+
# threads
31+
'snippets', 'notification_squad', 'subscriptions', 'closures',
32+
# commands
33+
'aliases'
3034
}
3135

3236
protected_keys = {
33-
'token', 'owners', 'modmail_api_token',
34-
'guild_id', 'modmail_guild_id',
35-
'mongo_uri', 'github_access_token', 'log_url'
37+
# Modmail
38+
'modmail_api_token', 'modmail_guild_id', 'guild_id', 'owners',
39+
# logs
40+
'log_url',
41+
# database
42+
'mongo_uri',
43+
# bot
44+
'token',
45+
# GitHub
46+
'github_access_token'
3647
}
3748

3849
valid_keys = allowed_to_change_in_command | internal_keys | protected_keys

0 commit comments

Comments
 (0)