-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.template.ini
83 lines (69 loc) · 4.39 KB
/
config.template.ini
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
# This is a template configuration file. Copy it to config.ini and fill it in.
[config]
# URL to your drawpile-srv web admin. Required.
# This is just the base URL, something like http://localhost:8080
# Do NOT append / or /api or anything.
base_url=
# Discord webhook URL to report actions to. Optional.
# See here to find out how to get this URL:
# https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks
discord_webhook_url=
# Where to store the script's database. If left empty, this will use
# "drawpile-monitor.db" in the script's directory.
database_path=
# Path to a file that contains additional banned words, one per line.
# See profanity/profanity_wordlist.txt for the format of that file.
wordlist_path=
# Path to a file that contains banned words even for NSFM sessions, one per
# line. For non-NSFM sessions, this will be merged with wordlist_path.
# See profanity/profanity_wordlist.txt for the format of that file.
nsfm_wordlist_path=
# Path to a file containing explicitly allowed words, one per line. These words
# will be removed from consideration when checking for profanity.
# See profanity/profanity_wordlist.txt for the format of that file, but note
# that this option does NOT handle * or spaces specially, they're verbatim!
allowlist_path=
# Path to a file containing words that should trigger a report, but not notify
# the offending session or user about that infraction. This feature requires
# discord_webhook_url to be set so that it can actually notify someone.
# See profanity/profanity_wordlist.txt for the format of that file.
silent_wordlist_path=
# Users/roles to mention in silent notifications as a list of comma-separated
# ids. Use Discord's developer mode to copy the user/role ids.
silent_user_mentions=
silent_role_mentions=
# Minimum probability required for something to count as offensive, in percent.
# Too low values may end up classifying stuff like "silly" as offensive. Too
# high values may miss stuff. 0 turns off the probablistic checking and only
# uses the word list checker. If this is not given, it defaults to 90.
min_offensive_probability=90
# How to handle checking for sessions with the NSFM flag. One of:
# - full: same criteria applies.
# - relaxed: disable regular profanity checks, only check for stuff given in
# nsfm_wordlist_path.
# If no value is given, this defaults to "full".
handle_nsfm=relaxed
# When this setting is enabled, NSFM usernames in passworded sessions are
# allowed even if the session does not have the NSFM flag set, since those
# usernames aren't visible publicly anyway. Defaults to false.
nsfm_users_in_passworded_sessions=true
# How many runs in a row can have errors before sending a report to the Discord
# webhook. So, for example, if you set it to 3, it will be quiet the first 3
# errors, but on the 4th it will report that something is fishy. When it gets a
# good run again afterwards, it will report that everything is well again.
max_error_streak_before_report=4
# Whether to warn sessions that are on an old version of Drawpile to update.
# Currently, this only checks for Drawpile 2.1 and 2.2 betas. If no value is
# given, this defaults to false.
warn_outdated_sessions=true
[messages]
# Messages that will be sent into the chat. Personalize them and maybe replace
# the link. You can append "_nsfm" to most of these messages to have a
# different message sent to sessions marked NSFM.
session_name_first_warning=Your session's title was detected to be offensive and has been changed. Please read the rules: https://drawpile.net/communities/
session_name_second_warning=Your session's title was detected to be offensive and has been changed again. Next time it will be terminated. Read the rules: https://drawpile.net/communities/
session_name_terminate=Session keeps offending, terminating it. Read the rules: https://drawpile.net/communities/
session_alias_terminate=Your session's ID alias was detected to be offensive, terminating it. Read the rules: https://drawpile.net/communities/
session_founder_terminate=Your session's founder was detected to be offensive, terminating it. Read the rules: https://drawpile.net/communities/
user_kick=Kicking user because of their offensive name. Read the rules: https://drawpile.net/communities/
session_outdated=Your session is hosted with an outdated version of Drawpile. Support for this version will be removed in the future. Go to https://drawpile.net/ to download and install the latest version.