mirror of
https://github.com/a-sync/game-server-watcher.git
synced 2026-03-31 06:24:19 -04:00
add username gamedig option to support palworld
This commit is contained in:
705
package-lock.json
generated
705
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "game-server-watcher",
|
||||
"version": "3.1.14",
|
||||
"version": "3.1.15",
|
||||
"description": "A simple discord/telegram/slack bot that can be hosted on a free service to monitor your game servers and players in style. 😎",
|
||||
"exports": "./dist/server.js",
|
||||
"type": "module",
|
||||
|
||||
@@ -289,7 +289,7 @@
|
||||
}
|
||||
},
|
||||
"password": {
|
||||
"title": "password (Nadeo)",
|
||||
"title": "password (Nadeo / Palworld)",
|
||||
"type": "string",
|
||||
"options": {
|
||||
"grid_columns": 3
|
||||
@@ -301,6 +301,13 @@
|
||||
"options": {
|
||||
"grid_columns": 3
|
||||
}
|
||||
},
|
||||
"username": {
|
||||
"title": "username (Palworld)",
|
||||
"type": "string",
|
||||
"options": {
|
||||
"grid_columns": 3
|
||||
}
|
||||
}
|
||||
},
|
||||
"format": "grid-strict",
|
||||
|
||||
@@ -96,7 +96,8 @@ export class GameServer {
|
||||
login: this.config.login,
|
||||
password: this.config.password,
|
||||
teamspeakQueryPort: this.config.teamspeakQueryPort,
|
||||
token: this.config.token
|
||||
token: this.config.token,
|
||||
username: this.config.username
|
||||
} as QueryOptions);
|
||||
|
||||
const raw = res.raw as { game?: string; folder?: string; presence_count?: number; };
|
||||
|
||||
@@ -56,11 +56,14 @@ export interface GameServerConfig {
|
||||
guildId?: string;
|
||||
// Nadeo
|
||||
login?: string;
|
||||
// Nadeo / Palworld
|
||||
password?: string;
|
||||
// Teamspeak 3
|
||||
teamspeakQueryPort?: number;
|
||||
// Terraria
|
||||
token?: string;
|
||||
// Palworld
|
||||
username?: string;
|
||||
}
|
||||
|
||||
const db = await JSONPreset<GameServerConfig[]>(DATA_PATH + 'default.config.json', []);
|
||||
|
||||
Reference in New Issue
Block a user