Go to file
2024-06-18 17:54:12 +02:00
.gitignore aa 2024-06-18 16:30:12 +02:00
config.toml.example Add option for multiple regexes to be matched 2024-06-18 17:26:44 +02:00
go.mod Add option to allow dupes 2024-06-18 17:52:38 +02:00
main.go Increase buffer siwe 2024-06-18 17:53:19 +02:00
README.md Update readme 2024-06-18 17:54:12 +02:00

Discord Regex Monitor

Example Config

[DISCORD]
  BOT_TOKEN = ""

[[SERVERS]]
  SERVER_ID = "1050204101826334999"
  OUTPUT_CHANNEL_ID = "1250585834726621999"
  PREFIX_ENABLED = true
  ALLOW_DUPLICATES = false
  [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"
  PREFIX_ENABLED = true
  ALLOW_DUPLICATES = false
  [SERVERS.COIN_REGEXES]
    Ethereum = "0x[a-fA-F0-9]{40}"
    Solana = "[1-9A-HJ-NP-Za-km-z]{32,44}"
  [SERVERS.CHANNEL_BLACKLIST]
    CHANNELS = []