Skip to content

Compose syntax for player spawn Discord notifications #457

Answered by drpcken
AdamLMark asked this question in Q&A
Discussion options

You must be logged in to vote

I had the exact same problem and ended up having to move the spawn message into my valheim.env file. It had to do with string interpolation and my lack of knowledge, but that isn't an issue if you move it to your valheim.env file. Here's my full env file:

SERVER_NAME=...
WORLD_NAME=...
SERVER_PUBLIC=false
SERVER_PASS=""
SUPERVISOR_HTTP=true
TZ=...
VALHEIM_PLUS=true
DISCORD_WEBHOOK=https://discord.com/api/webhooks/....
VALHEIM_LOG_FILTER_CONTAINS_Spawned=Got character ZDOID from
ON_VALHEIM_LOG_FILTER_CONTAINS_Spawned={ read l; l=${l:46}; l=${l// :*/}; msg="[$(date +'%b %d %T')] Player $l connected."; curl -sfSL -X POST -H "Content-Type: application/json" -d "{\"username\":\"Hugin\",\"conte…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@PyroghostX
Comment options

@naanlizard
Comment options

@PyroghostX
Comment options

@PyroghostX
Comment options

Answer selected by AdamLMark
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants