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
|
bot:
help_prefix: "bot."
token: !REQUIRED_ENV "BOT_TOKEN"
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
emojis:
defcon_disabled: "<:defcondisabled:470326273952972810>"
defcon_enabled: "<:defconenabled:470326274213150730>"
defcon_updated: "<:defconsettingsupdated:470326274082996224>"
green_chevron: "<:greenchevron:418104310329769993>"
red_chevron: "<:redchevron:418112778184818698>"
white_chevron: "<:whitechevron:418110396973711363>"
lemoneye2: "<:lemoneye2:435193765582340098>"
bullet: "\u2022"
pencil: "\u270F"
new: "\U0001F195"
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"
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"
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/472472640100106250.png"
guild:
id: 267624335836053506
channels:
admins: &ADMINS 365960823622991872
announcements: 354619224620138496
big_brother_logs: 468507907357409333
bot: 267659945086812160
checkpoint_test: 422077681434099723
devalerts: 460181980097675264
devlog: 409308876241108992
devtest: 414574275865870337
help_0: 303906576991780866
help_1: 303906556754395136
help_2: 303906514266226689
help_3: 439702951246692352
help_4: 451312046647148554
help_5: 454941769734422538
helpers: 385474242440986624
message_log: &MESSAGE_LOG 467752170159079424
mod_alerts: 473092793431097354
modlog: &MODLOG 282638479504965634
off_topic_0: 291284109232308226
off_topic_1: 463035241142026251
off_topic_2: 463035268514185226
python: 267624335836053506
verification: 352442727016693763
ignored: [*ADMINS, *MESSAGE_LOG, *MODLOG]
roles:
admin: 267628507062992896
announcements: 463658397560995840
champion: 430492892331769857
contributor: 295488872404484098
developer: 352427296948486144
devops: 409416496733880320
jammer: 423054537079783434
moderator: 267629731250176001
owner: 267627879762755584
verified: 352427296948486144
helpers: 267630620367257601
muted: &MUTED_ROLE 277914926603829249
keys:
deploy_bot: !ENV "DEPLOY_BOT_KEY"
deploy_site: !ENV "DEPLOY_SITE"
omdb: !ENV "OMDB_API_KEY"
site_api: !ENV "BOT_API_KEY"
youtube: !ENV "YOUTUBE_API_KEY"
clickup:
key: !ENV "CLICKUP_KEY"
space: 757069
team: 754996
rabbitmq:
host: "pdrmq"
password: !ENV ["RABBITMQ_DEFAULT_PASS", "guest"]
port: 5672
username: !ENV ["RABBITMQ_DEFAULT_USER", "guest"]
urls:
# PyDis site vars
site: &DOMAIN "api.pythondiscord.com"
site_schema: &SCHEMA "https://"
site_bigbrother_api: !JOIN [*SCHEMA, *DOMAIN, "/bot/bigbrother"]
site_clean_api: !JOIN [*SCHEMA, *DOMAIN, "/bot/clean"]
site_clean_logs: !JOIN [*SCHEMA, *DOMAIN, "/bot/clean_logs"]
site_docs_api: !JOIN [*SCHEMA, *DOMAIN, "/bot/docs"]
site_facts_api: !JOIN [*SCHEMA, *DOMAIN, "/bot/snake_facts"]
site_hiphopify_api: !JOIN [*SCHEMA, *DOMAIN, "/bot/hiphopify"]
site_idioms_api: !JOIN [*SCHEMA, *DOMAIN, "/bot/snake_idioms"]
site_infractions: !JOIN [*SCHEMA, *DOMAIN, "/bot/infractions"]
site_infractions_user: !JOIN [*SCHEMA, *DOMAIN, "/bot/infractions/user/{user_id}"]
site_infractions_type: !JOIN [*SCHEMA, *DOMAIN, "/bot/infractions/type/{infraction_type}"]
site_infractions_by_id: !JOIN [*SCHEMA, *DOMAIN, "/bot/infractions/id/{infraction_id}"]
site_infractions_user_type_current: !JOIN [*SCHEMA, *DOMAIN, "/bot/infractions/user/{user_id}/{infraction_type}/current"]
site_names_api: !JOIN [*SCHEMA, *DOMAIN, "/bot/snake_names"]
site_off_topic_names_api: !JOIN [*SCHEMA, *DOMAIN, "/bot/off-topic-names"]
site_quiz_api: !JOIN [*SCHEMA, *DOMAIN, "/bot/snake_quiz"]
site_settings_api: !JOIN [*SCHEMA, *DOMAIN, "/bot/settings"]
site_special_api: !JOIN [*SCHEMA, *DOMAIN, "/bot/special_snakes"]
site_tags_api: !JOIN [*SCHEMA, *DOMAIN, "/bot/tags"]
site_user_api: !JOIN [*SCHEMA, *DOMAIN, "/bot/users"]
site_user_complete_api: !JOIN [*SCHEMA, *DOMAIN, "/bot/users/complete"]
# Env vars
deploy: !ENV "DEPLOY_URL"
status: !ENV "STATUS_URL"
# Misc URLs
bot_avatar: "https://raw.githubusercontent.com/discord-python/branding/master/logos/logo_circle/logo_circle.png"
gitlab_bot_repo: "https://gitlab.com/python-discord/projects/bot"
omdb: "http://omdbapi.com"
paste_service: "https://paste.pydis.com/{key}"
anti_spam:
# Clean messages that violate a rule.
clean_offending: true
punishment:
role_id: *MUTED_ROLE
remove_after: 600
rules:
attachments:
interval: 10
max: 3
burst:
interval: 10
max: 7
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: 4
mentions:
interval: 10
max: 5
newlines:
interval: 10
max: 100
role_mentions:
interval: 10
max: 3
|