forked from python-discord/bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-default.yml
532 lines (413 loc) · 18.2 KB
/
config-default.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
bot:
prefix: "!"
token: !ENV "BOT_TOKEN"
sentry_dsn: !ENV "BOT_SENTRY_DSN"
redis:
host: "redis.default.svc.cluster.local"
port: 6379
password: !ENV "REDIS_PASSWORD"
use_fakeredis: false
stats:
statsd_host: "graphite.default.svc.cluster.local"
presence_update_timeout: 300
cooldowns:
# Per channel, per tag.
tags: 60
clean:
# Maximum number of messages to traverse for clean commands
message_limit: 10000
style:
colours:
soft_red: 0xcd6d6d
soft_green: 0x68c290
soft_orange: 0xf9cb54
bright_green: 0x01d277
emojis:
defcon_disabled: "<:defcondisabled:470326273952972810>"
defcon_enabled: "<:defconenabled:470326274213150730>"
defcon_updated: "<:defconsettingsupdated:470326274082996224>"
status_online: "<:status_online:470326272351010816>"
status_idle: "<:status_idle:470326266625785866>"
status_dnd: "<:status_dnd:470326272082313216>"
status_offline: "<:status_offline:470326266537705472>"
badge_staff: "<:discord_staff:743882896498098226>"
badge_partner: "<:partner:748666453242413136>"
badge_hypesquad: "<:hypesquad_events:743882896892362873>"
badge_bug_hunter: "<:bug_hunter_lvl1:743882896372269137>"
badge_hypesquad_bravery: "<:hypesquad_bravery:743882896745693335>"
badge_hypesquad_brilliance: "<:hypesquad_brilliance:743882896938631248>"
badge_hypesquad_balance: "<:hypesquad_balance:743882896460480625>"
badge_early_supporter: "<:early_supporter:743882896909140058>"
badge_bug_hunter_level_2: "<:bug_hunter_lvl2:743882896611344505>"
badge_verified_bot_developer: "<:verified_bot_dev:743882897299210310>"
incident_actioned: "<:incident_actioned:719645530128646266>"
incident_unactioned: "<:incident_unactioned:719645583245180960>"
incident_investigating: "<:incident_investigating:719645658671480924>"
failmail: "<:failmail:633660039931887616>"
trashcan: "<:trashcan:637136429717389331>"
bullet: "\u2022"
pencil: "\u270F"
new: "\U0001F195"
cross_mark: "\u274C"
check_mark: "\u2705"
# emotes used for #reddit
upvotes: "<:reddit_upvotes:755845219890757644>"
comments: "<:reddit_comments:755845255001014384>"
user: "<:reddit_users:755845303822974997>"
icons:
crown_blurple: "https://cdn.discordapp.com/emojis/469964153289965568.png"
crown_green: "https://cdn.discordapp.com/emojis/469964154719961088.png"
crown_red: "https://cdn.discordapp.com/emojis/469964154879344640.png"
defcon_denied: "https://cdn.discordapp.com/emojis/472475292078964738.png"
defcon_disabled: "https://cdn.discordapp.com/emojis/470326273952972810.png"
defcon_enabled: "https://cdn.discordapp.com/emojis/470326274213150730.png"
defcon_updated: "https://cdn.discordapp.com/emojis/472472638342561793.png"
filtering: "https://cdn.discordapp.com/emojis/472472638594482195.png"
guild_update: "https://cdn.discordapp.com/emojis/469954765141442561.png"
hash_blurple: "https://cdn.discordapp.com/emojis/469950142942806017.png"
hash_green: "https://cdn.discordapp.com/emojis/469950144918585344.png"
hash_red: "https://cdn.discordapp.com/emojis/469950145413251072.png"
message_bulk_delete: "https://cdn.discordapp.com/emojis/469952898994929668.png"
message_delete: "https://cdn.discordapp.com/emojis/472472641320648704.png"
message_edit: "https://cdn.discordapp.com/emojis/472472638976163870.png"
sign_in: "https://cdn.discordapp.com/emojis/469952898181234698.png"
sign_out: "https://cdn.discordapp.com/emojis/469952898089091082.png"
token_removed: "https://cdn.discordapp.com/emojis/470326273298792469.png"
user_ban: "https://cdn.discordapp.com/emojis/469952898026045441.png"
user_unban: "https://cdn.discordapp.com/emojis/469952898692808704.png"
user_update: "https://cdn.discordapp.com/emojis/469952898684551168.png"
user_mute: "https://cdn.discordapp.com/emojis/472472640100106250.png"
user_unmute: "https://cdn.discordapp.com/emojis/472472639206719508.png"
user_verified: "https://cdn.discordapp.com/emojis/470326274519334936.png"
user_warn: "https://cdn.discordapp.com/emojis/470326274238447633.png"
pencil: "https://cdn.discordapp.com/emojis/470326272401211415.png"
remind_blurple: "https://cdn.discordapp.com/emojis/477907609215827968.png"
remind_green: "https://cdn.discordapp.com/emojis/477907607785570310.png"
remind_red: "https://cdn.discordapp.com/emojis/477907608057937930.png"
questionmark: "https://cdn.discordapp.com/emojis/512367613339369475.png"
superstarify: "https://cdn.discordapp.com/emojis/636288153044516874.png"
unsuperstarify: "https://cdn.discordapp.com/emojis/636288201258172446.png"
voice_state_blue: "https://cdn.discordapp.com/emojis/656899769662439456.png"
voice_state_green: "https://cdn.discordapp.com/emojis/656899770094452754.png"
voice_state_red: "https://cdn.discordapp.com/emojis/656899769905709076.png"
green_checkmark: "https://raw.githubusercontent.com/python-discord/branding/master/icons/checkmark/green-checkmark-dist.png"
guild:
id: 267624335836053506
invite: "https://discord.gg/python"
categories:
help_available: 691405807388196926
help_in_use: 696958401460043776
help_dormant: 691405908919451718
modmail: &MODMAIL 714494672835444826
logs: &LOGS 468520609152892958
voice: 356013253765234688
channels:
# Public announcement and news channels
change_log: &CHANGE_LOG 748238795236704388
announcements: &ANNOUNCEMENTS 354619224620138496
python_news: &PYNEWS_CHANNEL 704372456592506880
python_events: &PYEVENTS_CHANNEL 729674110270963822
mailing_lists: &MAILING_LISTS 704372456592506880
reddit: &REDDIT_CHANNEL 458224812528238616
user_event_announcements: &USER_EVENT_A 592000283102674944
# Development
dev_contrib: &DEV_CONTRIB 635950537262759947
dev_core: &DEV_CORE 411200599653351425
dev_log: &DEV_LOG 622895325144940554
# Discussion
meta: 429409067623251969
python_discussion: &PY_DISCUSSION 267624335836053506
# Python Help: Available
how_to_get_help: 704250143020417084
cooldown: 720603994149486673
# Logs
attachment_log: &ATTACH_LOG 649243850006855680
message_log: &MESSAGE_LOG 467752170159079424
mod_log: &MOD_LOG 282638479504965634
user_log: 528976905546760203
voice_log: 640292421988646961
dm_log: 653713721625018428
# Off-topic
off_topic_0: 291284109232308226
off_topic_1: 463035241142026251
off_topic_2: 463035268514185226
# Special
bot_commands: &BOT_CMD 267659945086812160
esoteric: 470884583684964352
verification: 352442727016693763
voice_gate: 764802555427029012
# Staff
admins: &ADMINS 365960823622991872
admin_spam: &ADMIN_SPAM 563594791770914816
defcon: &DEFCON 464469101889454091
helpers: &HELPERS 385474242440986624
incidents: 714214212200562749
incidents_archive: 720668923636351037
mods: &MODS 305126844661760000
mod_alerts: 473092532147060736
mod_spam: &MOD_SPAM 620607373828030464
organisation: &ORGANISATION 551789653284356126
staff_lounge: &STAFF_LOUNGE 464905259261755392
duck_pond: &DUCK_POND 637820308341915648
# Staff announcement channels
staff_announcements: &STAFF_ANNOUNCEMENTS 464033278631084042
mod_announcements: &MOD_ANNOUNCEMENTS 372115205867700225
admin_announcements: &ADMIN_ANNOUNCEMENTS 749736155569848370
# Voice
code_help_voice: 755154969761677312
code_help_voice_2: 766330079135268884
voice_chat: 412357430186344448
admins_voice: &ADMINS_VOICE 500734494840717332
staff_voice: &STAFF_VOICE 412375055910043655
# Watch
big_brother_logs: &BB_LOGS 468507907357409333
talent_pool: &TALENT_POOL 534321732593647616
moderation_categories:
- *MODMAIL
- *LOGS
moderation_channels:
- *ADMINS
- *ADMIN_SPAM
- *MODS
- *MOD_SPAM
# Modlog cog ignores events which occur in these channels
modlog_blacklist:
- *ADMINS
- *ADMINS_VOICE
- *ATTACH_LOG
- *MESSAGE_LOG
- *MOD_LOG
- *STAFF_VOICE
reminder_whitelist:
- *BOT_CMD
- *DEV_CONTRIB
roles:
announcements: 463658397560995840
contributors: 295488872404484098
help_cooldown: 699189276025421825
muted: &MUTED_ROLE 277914926603829249
partners: 323426753857191936
python_community: &PY_COMMUNITY_ROLE 458226413825294336
sprinters: &SPRINTERS 758422482289426471
unverified: 739794855945044069
verified: 352427296948486144 # @Developers on PyDis
voice_verified: 764802720779337729
# Staff
admins: &ADMINS_ROLE 267628507062992896
core_developers: 587606783669829632
helpers: &HELPERS_ROLE 267630620367257601
moderators: &MODS_ROLE 267629731250176001
owners: &OWNERS_ROLE 267627879762755584
# Code Jam
jammers: 737249140966162473
team_leaders: 737250302834638889
moderation_roles:
- *OWNERS_ROLE
- *ADMINS_ROLE
- *MODS_ROLE
staff_roles:
- *OWNERS_ROLE
- *ADMINS_ROLE
- *MODS_ROLE
- *HELPERS_ROLE
webhooks:
big_brother: 569133704568373283
dev_log: 680501655111729222
dm_log: 654567640664244225
duck_pond: 637821475327311927
incidents_archive: 720671599790915702
python_news: &PYNEWS_WEBHOOK 704381182279942324
reddit: 635408384794951680
talent_pool: 569145364800602132
filter:
# What do we filter?
filter_zalgo: false
filter_invites: true
filter_domains: true
filter_everyone_ping: true
watch_regex: true
watch_rich_embeds: true
# Notify user on filter?
# Notifications are not expected for "watchlist" type filters
notify_user_zalgo: false
notify_user_invites: true
notify_user_domains: false
notify_user_everyone_ping: true
# Filter configuration
ping_everyone: true
offensive_msg_delete_days: 7 # How many days before deleting an offensive message?
# Censor doesn't apply to these
channel_whitelist:
- *ADMINS
- *MOD_LOG
- *MESSAGE_LOG
- *DEV_LOG
- *BB_LOGS
- *STAFF_LOUNGE
- *TALENT_POOL
- *USER_EVENT_A
role_whitelist:
- *ADMINS_ROLE
- *MODS_ROLE
- *OWNERS_ROLE
- *HELPERS_ROLE
- *PY_COMMUNITY_ROLE
- *SPRINTERS
keys:
site_api: !ENV "BOT_API_KEY"
urls:
# PyDis site vars
site: &DOMAIN "pythondiscord.com"
site_api: &API !JOIN ["api.", *DOMAIN]
site_paste: &PASTE !JOIN ["paste.", *DOMAIN]
site_staff: &STAFF !JOIN ["staff.", *DOMAIN]
site_schema: &SCHEMA "https://"
site_logs_view: !JOIN [*SCHEMA, *STAFF, "/bot/logs"]
paste_service: !JOIN [*SCHEMA, *PASTE, "/{key}"]
# Snekbox
snekbox_eval_api: "http://snekbox.default.svc.cluster.local/eval"
# Discord API URLs
discord_api: &DISCORD_API "https://discordapp.com/api/v7/"
discord_invite_api: !JOIN [*DISCORD_API, "invites"]
# Misc URLs
bot_avatar: "https://raw.githubusercontent.com/discord-python/branding/master/logos/logo_circle/logo_circle.png"
github_bot_repo: "https://github.com/python-discord/bot"
anti_spam:
# Clean messages that violate a rule.
clean_offending: true
ping_everyone: true
punishment:
role_id: *MUTED_ROLE
remove_after: 600
rules:
attachments:
interval: 10
max: 9
burst:
interval: 10
max: 7
# Burst shared it (temporarily) disabled to prevent
# the bug that triggers multiple infractions/DMs per
# user. It also tends to catch a lot of innocent users
# now that we're so big.
# burst_shared:
# interval: 10
# max: 20
chars:
interval: 5
max: 3_000
duplicates:
interval: 10
max: 3
discord_emojis:
interval: 10
max: 20
links:
interval: 10
max: 10
mentions:
interval: 10
max: 5
newlines:
interval: 10
max: 100
max_consecutive: 10
role_mentions:
interval: 10
max: 3
reddit:
subreddits:
- 'r/Python'
client_id: !ENV "REDDIT_CLIENT_ID"
secret: !ENV "REDDIT_SECRET"
big_brother:
log_delay: 15
header_message_limit: 15
code_block:
# The channels in which code blocks will be detected. They are not subject to a cooldown.
channel_whitelist:
- *BOT_CMD
# The channels which will be affected by a cooldown. These channels are also whitelisted.
cooldown_channels:
- *PY_DISCUSSION
# Sending instructions triggers a cooldown on a per-channel basis.
# More instruction messages will not be sent in the same channel until the cooldown has elapsed.
cooldown_seconds: 300
# The minimum amount of lines a message or code block must have for instructions to be sent.
minimum_lines: 4
free:
# Seconds to elapse for a channel
# to be considered inactive.
activity_timeout: 600
cooldown_rate: 1
cooldown_per: 60.0
help_channels:
enable: true
# Minimum interval before allowing a certain user to claim a new help channel
claim_minutes: 15
# Roles which are allowed to use the command which makes channels dormant
cmd_whitelist:
- *HELPERS_ROLE
# Allowed duration of inactivity before making a channel dormant
idle_minutes: 30
# Allowed duration of inactivity when channel is empty (due to deleted messages)
# before message making a channel dormant
deleted_idle_minutes: 5
# Maximum number of channels to put in the available category
max_available: 2
# Maximum number of channels across all 3 categories
# Note Discord has a hard limit of 50 channels per category, so this shouldn't be > 50
max_total_channels: 32
# Prefix for help channel names
name_prefix: 'help-'
# Notify if more available channels are needed but there are no more dormant ones
notify: true
# Channel in which to send notifications
notify_channel: *HELPERS
# Minimum interval between helper notifications
notify_minutes: 15
# Mention these roles in notifications
notify_roles:
- *HELPERS_ROLE
redirect_output:
delete_invocation: true
delete_delay: 15
duck_pond:
threshold: 4
channel_blacklist:
- *ANNOUNCEMENTS
- *PYNEWS_CHANNEL
- *PYEVENTS_CHANNEL
- *MAILING_LISTS
- *REDDIT_CHANNEL
- *USER_EVENT_A
- *DUCK_POND
- *CHANGE_LOG
- *STAFF_ANNOUNCEMENTS
- *MOD_ANNOUNCEMENTS
- *ADMIN_ANNOUNCEMENTS
python_news:
mail_lists:
- 'python-ideas'
- 'python-announce-list'
- 'pypi-announce'
- 'python-dev'
channel: *PYNEWS_CHANNEL
webhook: *PYNEWS_WEBHOOK
verification:
unverified_after: 3 # Days after which non-Developers receive the @Unverified role
kicked_after: 30 # Days after which non-Developers get kicked from the guild
reminder_frequency: 28 # Hours between @Unverified pings
bot_message_delete_delay: 10 # Seconds before deleting bots response in #verification
# Number in range [0, 1] determining the percentage of unverified users that are safe
# to be kicked from the guild in one batch, any larger amount will require staff confirmation,
# set this to 0 to require explicit approval for batches of any size
kick_confirmation_threshold: 0.01 # 1%
voice_gate:
minimum_days_verified: 3 # How many days the user must have been verified for
minimum_messages: 50 # How many messages a user must have to be eligible for voice
bot_message_delete_delay: 10 # Seconds before deleting bot's response in Voice Gate
minimum_activity_blocks: 3 # Number of 10 minute blocks during which a user must have been active
voice_ping_delete_delay: 60 # Seconds before deleting the bot's ping to user in Voice Gate
config:
required_keys: ['bot.token']