ts3-slack-bot detects logging to Team Speak server and posts it to slack, incoming webhook.
Usage of ./ts3-slack-bot:
-d Debug
-id string
Server ID
-o string
Output file (default "clients.json")
-p string
TS3 server query password
-u string
TS3 server query username
-url string
WebHookURL
- Get the source code and build it.
go get github.com/Rompei/ts3-slack-bot
cd $GOPATH/src/github.com/Rompei/ts3-slack-bot
go build
- Set the software with cron. In this example, it runs every five minutes.
*/5 * * * * ts3-slack-bot [OPTIONS]
-
First time, it gets client information from team speak server with server query and stores it.
-
Next time, it gets client information and compares with old one, then posts client statuses to Slack. In this example, it will post 5 minutes later of first step.
- If people enter the server, it will notify it within from 5 to 10 minutes
- If people leave the server, it will notify it.
- If people change channels, it will notify it.