-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.example.toml
32 lines (26 loc) · 1003 Bytes
/
config.example.toml
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
token = "your bot's token"
# Number of replies to cache. Cache memory usage (bytes) = `this * 16`.
reply_cache_size = 3
# User IDs the bot won't respond to.
ignored_users = []
# The number of milliseconds to wait before suppressing embeds -- can help reduce flashing.
suppress_delay_millis = 200
# Passes: each pass gets run independently and all of its matched URLs are appended
# to the bot's output.
# NOTE: these are used in tests! If you change them, update the integration test too.
[[pass]]
# The label that appears in the masked link.
label = "Tweet"
# The regex to match the link -- should start at `https` and end at the TLD and
# must not contain match groups.
regex = "https://(?:x|twitter)\\.com"
# The stem to replace the matched area with.
stem = "https://vxtwitter.com"
[[pass]]
label = "Instagram Post"
regex = "https://(?:www\\.)?instagram\\.com"
stem = "https://ddinstagram.com"
[[pass]]
label = "TikTok"
regex = "https://(?:[\\w]+\\.)?tiktok\\.com"
stem = "https://tiktxk.com"