Skip to content

Gjum/CivRelay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CivRelay

Sends different alerts to different Discord channels: snitch alerts, group chat, player login/out

GUI Screenshot

More screenshots

How to Use

  1. Install Forge
  2. Install the latest .jar
  3. 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
  4. Open the config screen:
    • From the start screen: Mods, select CivRelay on the left, then click Config at the bottom left
    • From the Escape menu: Mods config, select CivRelay on the left, then click Config at the bottom left
  5. Create a new Filter
  6. Paste the webhook url, enter the game address you play on, change other options if you like
  7. Click Save and close

Alert Formatting

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!

Travis build Status

About

1.12 Litemod that sends different alerts to different Discord channels: snitch alerts, group chat, player login/out

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages