windward-slack
Monitors a Windward server and notifies a slack channel when someone enters or exits the game.
Setup
git clone https://github.com/rexxars/windward-slack.git
cd windward-slack
npm install
npm start
Docker
There is also a docker image available. Run docker run rexxars/windward-slack
. Be sure to set the environment variables listed below.
Environment variables
Note that these can also be set in a .env
file in the app folder.
-
SLACK_WEBHOOK_URL
- Incoming webhook URL for your slack. Starts withhttps://hooks.slack.com
-
SLACK_CHANNEL
- Channel to post notifications to. Defaults to#windward
-
SLACK_USERNAME
- Username to use when posting notifications. Defaults toWindward
-
SLACK_ICON_URL
- Icon URL to use for the user that posts the notifications -
WINDWARD_SERVER_URL
- Server URL. If your windward server is atsomehost.com:5127
, usehttp://somehost.com:5127/
.
License
MIT-licensed. See LICENSE.