Просмотр исходного кода

Documenting config.py.sample

tags/2.0.0
Rocketsoup 2 месяцев назад
Родитель
Сommit
82f682d908
1 измененных файлов: 52 добавлений и 9 удалений
  1. 52
    9
      config.py.sample

+ 52
- 9
config.py.sample Просмотреть файл

1
-# Copy this file to config.py and fill in necessary values
1
+# Copy this file to config.py and fill in "<REQUIRED>" values
2
 CONFIG = {
2
 CONFIG = {
3
 	'__config_version': 3,
3
 	'__config_version': 3,
4
-	'client_token': 'token',
4
+
5
+    # -----------------------------------------------------------------------
6
+    # General
7
+
8
+	# Client token obtained from the Discord application dashboard. See setup documentation.
9
+	'client_token': '<REQUIRED>',
10
+    # Bot commands will be invoked by posting a message with this prefix.
5
 	'command_prefix': '$rb_',
11
 	'command_prefix': '$rb_',
12
+    # Path to a directory where guild-specific preferences will be stored.
13
+    # Each guild's settings will be saved as a JSON file. Path should end with a slash.
14
+	'config_path': 'config/',
15
+    # Limit on how many users are tagged in one message.
16
+	'max_members_per_message': 20,
17
+	# Minimum seconds between warnings about the same member.
18
+	'squelch_warning_seconds': 300,
19
+
20
+    # -----------------------------------------------------------------------
21
+    # Emojis used for performing actions on flagged activities. The bot will
22
+    # post a message in the designated logging channel with one or more
23
+    # reaction emojis and an explanation of each action. Adding that emoji
24
+    # will perform that action.
25
+
26
+    # Reaction for kicking a user from the server
6
 	'kick_emoji': '👢',
27
 	'kick_emoji': '👢',
28
+	# Reaction for banning a user from the server
7
 	'ban_emoji': '🚫',
29
 	'ban_emoji': '🚫',
30
+	# Reaction for deleting a message
8
 	'trash_emoji': '🗑',
31
 	'trash_emoji': '🗑',
32
+	# Reaction for acknowledging a warning but deciding to take no action
33
+	'ignore_emoji': '👍',
34
+
35
+    # -----------------------------------------------------------------------
36
+    # Emojis added to bot messages as general categories. These are just
37
+    # decorative for quickly scanning log message types.
38
+
39
+	# A bot operation completed successfully
9
 	'success_emoji': '✅',
40
 	'success_emoji': '✅',
41
+	# A bot operation failed
10
 	'failure_emoji': '❌',
42
 	'failure_emoji': '❌',
43
+	# Something happened that mods should probably pay attention to
11
 	'warning_emoji': '⚠️',
44
 	'warning_emoji': '⚠️',
45
+	# Non-critical information
12
 	'info_emoji': 'ℹ️',
46
 	'info_emoji': 'ℹ️',
47
+	# Logging something that happened on the server (e.g. a user joined the server)
13
 	'log_emoji': '📋',
48
 	'log_emoji': '📋',
14
-	'ignore_emoji': '👍',
15
-	'config_path': 'config/',
16
-	'max_members_per_message': 20,
17
-	'squelch_warning_seconds': 300,
49
+
50
+    # -----------------------------------------------------------------------
51
+    # Default values for cog-specific settings that a guild has not overridden
52
+    # through configuration commands. More information about these is available
53
+    # from the runtime help commands for each cog.
18
 	'cog_defaults': {
54
 	'cog_defaults': {
19
 		'AutoKickCog': {
55
 		'AutoKickCog': {
20
-			'bancount': 0
56
+		    'enabled': False,
57
+			'bancount': 0,
58
+			'offlineonly': False,
21
 		},
59
 		},
22
 		'CrossPostCog': {
60
 		'CrossPostCog': {
23
 			'enabled': False,
61
 			'enabled': False,
27
 			'timespan': 60,
65
 			'timespan': 60,
28
 		},
66
 		},
29
 		'JoinAgeCog': {
67
 		'JoinAgeCog': {
68
+		    'enabled': False,
30
 			'jointime': 3600,
69
 			'jointime': 3600,
31
 		},
70
 		},
32
 		'JoinRaidCog': {
71
 		'JoinRaidCog': {
33
 			'enabled': False,
72
 			'enabled': False,
34
-			'warning_count': 5,
35
-			'warning_seconds': 5,
73
+			'joincount': 5,
74
+			'jointime': 5,
75
+		},
76
+		'LoggingCog': {
77
+		    'enabled': False,
36
 		},
78
 		},
37
 		'URLSpamCog': {
79
 		'URLSpamCog': {
38
 			'enabled': False,
80
 			'enabled': False,
39
 			'joinage': 900,  # Should be > 600 due to Discord-imposed waiting period
81
 			'joinage': 900,  # Should be > 600 due to Discord-imposed waiting period
40
 			'action': 'nothing',  # "nothing" | "modwarn" | "delete" | "kick" | "ban"
82
 			'action': 'nothing',  # "nothing" | "modwarn" | "delete" | "kick" | "ban"
83
+			'deceptiveaction': 'nothing',  # "nothing" | "modwarn" | "delete" | "kick" | "ban"
41
 		},
84
 		},
42
 	},
85
 	},
43
 }
86
 }

Загрузка…
Отмена
Сохранить