NightKin
所属分类:构建工具
开发工具:Python
文件大小:0KB
下载次数:0
上传日期:2024-04-01 13:21:38
上 传 者:
sh-1993
说明: Discord webhook可显示V Rising服务器上玩家的实时更新。
(Discord webhook to display real-time updates of players on V Rising servers.)
文件列表:
nightkin/
test/
vrising_metrics/
vrising_steam/
.dockerignore
Dockerfile
main.py
requirements.txt
sample_config.json
sample_envloader
# NightKin
Discord webhook to display real-time updates of players on V Rising servers. Using Steam A2P API
![Image 1](https://github.com/mnjm/NightKin/blob/7da78d18317642ce8e9f5b92f2484bf05f5f970f/FangBot-Image1.png)
![Image 2](https://github.com/mnjm/NightKin/blob/f6778f21efc0f6d07484b8263352c311d28a851d/FangBot-Update.png)
## 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`
近期下载者:
相关文件:
收藏者: