https://github.com/mnjm/nightkin
Discord webhook to display real-time updates of players on V Rising servers.
https://github.com/mnjm/nightkin
Last synced: 3 months ago
JSON representation
Discord webhook to display real-time updates of players on V Rising servers.
- Host: GitHub
- URL: https://github.com/mnjm/nightkin
- Owner: mnjm
- Created: 2023-09-29T13:31:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-28T14:58:12.000Z (about 1 year ago)
- Last Synced: 2025-01-18T20:07:50.408Z (5 months ago)
- Language: Python
- Homepage:
- Size: 119 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NightKin
Discord webhook to display real-time updates of players on V Rising servers. Using Steam A2P API

## Configuration
### Create config.json file that contains
```json
{
"botname": "NightKin",
"bot_avatar_url": "https://havi-x.github.io/hosted-images/TSR/BatWithFang.jpeg",
"a2s_timeout": 20,
"update_interval": 300,
"embed_color": "#FF0000",
"servers_info": {
"server1": {
"vr_ip": "",
"vr_query_port": ,
"last_message_id": 0,
"timezone": "Asia/Kolkata",
"vr_metrics_port": 0
},
"server2": {
"vr_ip": "",
"vr_query_port": ,
"last_message_id": 0,
"timezone": "Asia/Kolkata",
"vr_metrics_port": 0
}
}
}
```
### Load webhook urls into environment vars
```bash
export NIGHT_WEBHOOK_URLS='{"server1": "", "server2": ""}'
```
### To enable castle territories, enable Metrics API in `ServerHostSettings.json` and configure the outgoing port
```json
{
"Name": "VRising Server",
...
"API": {
"Enabled": true,
"BindPort":
},
...
}
```
And mention the port in `config.json` in `vr_metrics_port`## Run
`python main.py config.json`