1
0
mirror of https://github.com/mgerb/ServerStatus synced 2026-01-09 18:52:50 +00:00

config updates

This commit is contained in:
2017-01-15 23:39:02 +01:00
parent a2f39bdcc4
commit c39c2b67e1
6 changed files with 53 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
{
"Token": "",
"AlertRoomID": "",
"Token": "your_bot_token_id",
"AlertRoomID": "your_room_id",
"Servers": [
{
"Name": "Elysium PvP",

BIN
dist/ServerStatus-linux vendored Executable file

Binary file not shown.

BIN
dist/ServerStatus-windows.exe vendored Executable file

Binary file not shown.

31
dist/config.json vendored Normal file
View File

@@ -0,0 +1,31 @@
{
"Token": "your_bot_token_id",
"AlertRoomID": "your_room_id",
"Servers": [
{
"Name": "Elysium PvP",
"Address": "149.202.207.235",
"Port": 8099
},
{
"Name": "Zethkur PvP",
"Address": "151.80.103.221",
"Port": 8093
},
{
"Name": "Anathema PvP",
"Address": "149.202.211.5",
"Port": 8095
},
{
"Name": "Darrowshire PvE",
"Address": "164.132.233.125",
"Port": 8097
},
{
"Name": "Elysium Authentication Server",
"Address": "logon.elysium-project.org",
"Port": 3724
}
]
}

5
makefile Normal file
View File

@@ -0,0 +1,5 @@
all:
@rm -rf ./dist
@GOOS=windows GOARCH=386 go build -o ./dist/ServerStatus-windows.exe main.go
@go build -o ./dist/ServerStatus-linux main.go
@cp config.template.json ./dist/config.json

View File

@@ -5,10 +5,19 @@ This bot will send a chat notification when the status of a server changes.
## Configuration
- Rename config.template.json to config.json
- Add your bot token
- Add the room ID in which you want the notifications
- Compile and run!
- Download or Clone the repo
- Add your bot token to the config.json file in the dist folder
- Add your room id to this file as well
- Execute the correct executable for your operating system!
### How to get bot token
https://github.com/reactiflux/discord-irc/wiki/Creating-a-discord-bot-&-getting-a-token
### How to get your room ID
To get IDs, turn on Developer Mode in the Discord client (User Settings -> Appearance) and then right-click your name/icon anywhere in the client and select Copy ID.
<img src="https://camo.githubusercontent.com/9f759ec8b45a6e9dd2242bc64c82897c74f84a25/687474703a2f2f692e696d6775722e636f6d2f47684b70424d512e676966"/>
## List server status in discord channel
@@ -18,6 +27,6 @@ This bot will send a chat notification when the status of a server changes.
Elysium PvP is online!
Zethkur PvP is online!
Anathema PvP is online!
Darrowshire PvP is online!
Darrowshire PvE is online!
Elysium Authentication Server is online!
```
```