-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add e.g. Discord notification on autoupdate #15
Comments
To add to this, the curl could be used for various logs beeing pushed to the discord webhook, e.g. the player join/leave notification that is beeing read from the service logs |
Hey, I will look into it. But I probably wont add so specific usecases. I could however expose a environment variable to hook into an update event. So you could execute some logic before and or after it triggered (e.g. sending the discord webhook). The other one with player join/leave is more complicated. For those usecases, it will probably be better, to manage those events outside of the container. |
feat: added hooks to execute custom shell scripts (resolves #15)
Hey, I'm preparing a new develop build with initially two hooks. So if you wanna try it out, it is available in both dev images.
For your Discord webhook you can just use the |
Hey @FlickyFlack, this feature is available in the latest |
@cp-fabian-pittroff I'll check it out later today, thanks for the implementation! |
I've unexpectedly got some time so I got around to testing: Everything is working as expected! Nice work! This is my current compose.yaml:
A sample boot.sh that includes the current version:
|
For easier adminstration I've also added an incredibly basic script that helps my "non Admin friends" in administrating the server. server.sh (The main adminstration script, located in the root directory of the compose.yaml)
stop.sh (message beeing sent via discord webhook when the server stops, defaulting to an Enshrouded Profile Picture)
The Server Name, Avatar_URL and message can be customized as you see fit. |
Is there an existing issue for this?
Feature description
I'd really like some kind of notification to an external service like discord when supervisord has detected/installed an update to the gameserver.
Using the following vars added / modified to the compose file:
SERVER_NAME
Enshrouded Server
AVATAR_URL
notifyURL
A simple push using curl could look like this:
While $(MESSAGE) is the literal string that is beeing pushed using the discord webhook.
The text was updated successfully, but these errors were encountered: