Pārlūkot izejas kodu

Documenting config.py.sample

tags/2.0.0
Rocketsoup 2 mēnešus atpakaļ
vecāks
revīzija
82f682d908
1 mainītis faili ar 52 papildinājumiem un 9 dzēšanām
  1. 52
    9
      config.py.sample

+ 52
- 9
config.py.sample Parādīt failu

@@ -1,23 +1,61 @@
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 2
 CONFIG = {
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 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 27
 	'kick_emoji': '👢',
28
+	# Reaction for banning a user from the server
7 29
 	'ban_emoji': '🚫',
30
+	# Reaction for deleting a message
8 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 40
 	'success_emoji': '✅',
41
+	# A bot operation failed
10 42
 	'failure_emoji': '❌',
43
+	# Something happened that mods should probably pay attention to
11 44
 	'warning_emoji': '⚠️',
45
+	# Non-critical information
12 46
 	'info_emoji': 'ℹ️',
47
+	# Logging something that happened on the server (e.g. a user joined the server)
13 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 54
 	'cog_defaults': {
19 55
 		'AutoKickCog': {
20
-			'bancount': 0
56
+		    'enabled': False,
57
+			'bancount': 0,
58
+			'offlineonly': False,
21 59
 		},
22 60
 		'CrossPostCog': {
23 61
 			'enabled': False,
@@ -27,17 +65,22 @@ CONFIG = {
27 65
 			'timespan': 60,
28 66
 		},
29 67
 		'JoinAgeCog': {
68
+		    'enabled': False,
30 69
 			'jointime': 3600,
31 70
 		},
32 71
 		'JoinRaidCog': {
33 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 79
 		'URLSpamCog': {
38 80
 			'enabled': False,
39 81
 			'joinage': 900,  # Should be > 600 due to Discord-imposed waiting period
40 82
 			'action': 'nothing',  # "nothing" | "modwarn" | "delete" | "kick" | "ban"
83
+			'deceptiveaction': 'nothing',  # "nothing" | "modwarn" | "delete" | "kick" | "ban"
41 84
 		},
42 85
 	},
43 86
 }

Notiek ielāde…
Atcelt
Saglabāt