2024-06-18 17:31:53 +02:00
|
|
|
# Discord Regex Monitor
|
|
|
|
|
2024-06-18 18:01:01 +02:00
|
|
|
Config should be renamed from `config.toml.example` to `config.toml`
|
|
|
|
|
2024-06-18 18:00:16 +02:00
|
|
|
### Notice
|
|
|
|
This setting should be enabled for the bot in the discord developer panel for it to function.
|
|
|
|
![](https://hedgedoc.directme.in/uploads/25ae754f-3624-4293-a517-ca589d85707f.png)
|
|
|
|
|
2024-06-18 17:31:53 +02:00
|
|
|
### Example Config
|
|
|
|
```toml
|
|
|
|
[DISCORD]
|
|
|
|
BOT_TOKEN = ""
|
|
|
|
|
|
|
|
[[SERVERS]]
|
|
|
|
SERVER_ID = "1050204101826334999"
|
|
|
|
OUTPUT_CHANNEL_ID = "1250585834726621999"
|
|
|
|
PREFIX_ENABLED = true
|
2024-06-27 12:17:09 +02:00
|
|
|
SERVER_ID_ENABLED = false
|
|
|
|
CHANNEL_ID_ENABLED = true
|
|
|
|
MESSAGE_LINK_ENABLED = false
|
2024-06-18 17:31:53 +02:00
|
|
|
[SERVERS.COIN_REGEXES]
|
|
|
|
Bitcoin = "[13][a-km-zA-HJ-NP-Z1-9]{25,34}"
|
|
|
|
Ethereum = "0x[a-fA-F0-9]{40}"
|
|
|
|
[SERVERS.CHANNEL_BLACKLIST]
|
|
|
|
CHANNELS = ["1250537334550827078"]
|
|
|
|
|
|
|
|
[[SERVERS]]
|
|
|
|
SERVER_ID = "1250885747062345999"
|
|
|
|
OUTPUT_CHANNEL_ID = "1250585834726621999"
|
2024-06-27 12:17:09 +02:00
|
|
|
PREFIX_ENABLED = false
|
|
|
|
SERVER_ID_ENABLED = false
|
|
|
|
CHANNEL_ID_ENABLED = true
|
|
|
|
MESSAGE_LINK_ENABLED = false
|
2024-06-18 17:31:53 +02:00
|
|
|
[SERVERS.COIN_REGEXES]
|
|
|
|
Ethereum = "0x[a-fA-F0-9]{40}"
|
|
|
|
Solana = "[1-9A-HJ-NP-Za-km-z]{32,44}"
|
|
|
|
[SERVERS.CHANNEL_BLACKLIST]
|
|
|
|
CHANNELS = []
|
|
|
|
```
|