Sends different alerts to different Discord channels: snitch alerts, group chat, player login/out
- Install Forge
- Install the latest
.jar
- Create a webhook in the config screen of one of your Discord channels: (or ask an admin to create a webhook url for you)
- Click the gear next to the channel name
- Select
Webhooks
on the left - Click
Create Webhook
- Copy the
Webhook Url
at the bottom
- Open the config screen:
- From the start screen:
Mods
, selectCivRelay
on the left, then clickConfig
at the bottom left - From the Escape menu:
Mods config
, selectCivRelay
on the left, then clickConfig
at the bottom left
- From the start screen:
- Create a new Filter
- Paste the webhook url, enter the game address you play on, change other options if you like
- Click
Save and close
Use {"content":"..."}
to tell Discord this is a text message, for example:
{"content":"`<timeUTC>` <player> etc..."}
You can use Embeds too.
All the <...>
will be replaced by various alert information:
Format key | Replacement examples |
---|---|
<timeLocal> | 23:45:56 |
<timeUTC> | 18:45:56 |
<timeUnix> | 1526433193 |
<event> | Snitch | Login/out |
<player> | ttk2 |
<snitch> | MySnitch |
<group> | MyGroup |
<action> | Enter | Login | Logout |
<actionText> | entered snitch at | logged out | ... |
<x> | -1234 |
<rx> | -1230 |
<y> | 56 |
<ry> | 60 |
<z> | -789 |
<rz> | -790 |
<world> | world | world_the_end |
<chatMsg> | Hello! |