mirror of
https://github.com/mgerb/ServerStatus
synced 2026-01-11 19:52:49 +00:00
config updates
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"Token": "",
|
"Token": "your_bot_token_id",
|
||||||
"AlertRoomID": "",
|
"AlertRoomID": "your_room_id",
|
||||||
"Servers": [
|
"Servers": [
|
||||||
{
|
{
|
||||||
"Name": "Elysium PvP",
|
"Name": "Elysium PvP",
|
||||||
|
|||||||
BIN
dist/ServerStatus-linux
vendored
Executable file
BIN
dist/ServerStatus-linux
vendored
Executable file
Binary file not shown.
BIN
dist/ServerStatus-windows.exe
vendored
Executable file
BIN
dist/ServerStatus-windows.exe
vendored
Executable file
Binary file not shown.
31
dist/config.json
vendored
Normal file
31
dist/config.json
vendored
Normal 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
5
makefile
Normal 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
|
||||||
19
readme.md
19
readme.md
@@ -5,10 +5,19 @@ This bot will send a chat notification when the status of a server changes.
|
|||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
- Rename config.template.json to config.json
|
- Download or Clone the repo
|
||||||
- Add your bot token
|
- Add your bot token to the config.json file in the dist folder
|
||||||
- Add the room ID in which you want the notifications
|
- Add your room id to this file as well
|
||||||
- Compile and run!
|
- 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
|
## 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!
|
Elysium PvP is online!
|
||||||
Zethkur PvP is online!
|
Zethkur PvP is online!
|
||||||
Anathema PvP is online!
|
Anathema PvP is online!
|
||||||
Darrowshire PvP is online!
|
Darrowshire PvE is online!
|
||||||
Elysium Authentication Server is online!
|
Elysium Authentication Server is online!
|
||||||
```
|
```
|
||||||
Reference in New Issue
Block a user