forked from belst/discord-irc-bridge
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.toml.sample
51 lines (44 loc) · 1.14 KB
/
config.toml.sample
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
[irc] # possible irc config fields: https://docs.rs/irc/0.13.6/irc/client/data/config/struct.Config.html#fields
owners = []
nickname = "etDisco"
username = "etDisco"
realname = "Discord Irc"
server = "irc.freenode.net"
port = 6697
password = ""
use_ssl = true
encoding = "UTF-8"
channels = ["#etlegacy"]
umodes = "+RB-x"
ping_time = 180
ping_timeout = 10
burst_window_length = 8
max_messages_in_burst = 15
should_ghost = false
ghost_sequence = []
[discord] # only supported field is token
token = "TOKEN"
# ORDER MATTERS
# It uses the first matching mapping
[[mapping.irc]]
from = "#etlegacy"
user = "Commander"
to = [693449787508523018]
[[mapping.irc]]
from = "#etlegacy"
to = [539619545925681152]
[[mapping.discord]]
from = 539619545925681152
to = ["#etlegacy"]
[misc]
badwords = [ # filter all messages containing this
"https://williampitcock.com/",
"https://bryanostergaard.com/",
"https://encyclopediadramatica.rs/Freenodegate",
"https://MattSTrout.com/",
"fentanyl"
]
# repository is used for finding issues by #<id>
repository = "etlegacy/etlegacy"
# dont forward messages starting with any of those characters
filterchars = "!."