From ea247b7ebd634b7aeda2b42a53620d9615ecff3a Mon Sep 17 00:00:00 2001 From: Smith Date: Mon, 20 Feb 2023 19:03:21 +0100 Subject: [PATCH] upd gamedig --- README.md | 4 ++-- public/main.js | 2 +- src/game-server.ts | 2 +- src/watcher.ts | 2 +- tsconfig.json | 3 --- 5 files changed, 5 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index d53b457..686a06e 100644 --- a/README.md +++ b/README.md @@ -165,10 +165,10 @@ node ./dist/server.js * Join the support / test [discord](https://discord.gg/4tsbftsGJz) # Further Reading -* [gamedig supported games list](https://raw.githubusercontent.com/a-sync/node8-gamedig/master/games.txt) +* [gamedig supported games list](https://raw.githubusercontent.com/gamedig/node-gamedig/master/games.txt) * [steamDB](https://steamdb.info/apps/) * [steam web API documentation](https://steamapi.xpaw.me/#IGameServersService/GetServerList) -* [discord API v8 documentation](https://discord.js.org/#/docs/discord.js/v12/class/MessageEmbed) +* [discord API v10 documentation](https://discord.js.org/#/docs/discord.js/14.7.1/class/EmbedBuilder) * [telegram API documentation](https://core.telegram.org/bots/api#editmessagetext) * [json-editor documentation](https://github.com/json-editor/json-editor#json-schema-support) * [json-editor demos](https://pmk65.github.io/jedemov2/dist/demo.html) diff --git a/public/main.js b/public/main.js index 76077d9..9212faa 100644 --- a/public/main.js +++ b/public/main.js @@ -79,7 +79,7 @@ $(async () => { }, "type": { "title": "Gamedig type", - "description": "Look for the GameDig Type ID in the games list.", + "description": "Look for the GameDig Type ID in the games list.", "type": "string", "options": { "grid_columns": 6 diff --git a/src/game-server.ts b/src/game-server.ts index 98e14b2..15c531d 100644 --- a/src/game-server.ts +++ b/src/game-server.ts @@ -1,5 +1,5 @@ import axios from 'axios'; -import { Player, query, QueryResult } from 'node8-gamedig'; +import { Player, query, QueryResult } from 'gamedig'; import { Low, JSONFile } from '@commonify/lowdb'; import ipRegex from './lib/ipregex'; import getIP from './lib/getip'; diff --git a/src/watcher.ts b/src/watcher.ts index 12a4b1f..231380a 100644 --- a/src/watcher.ts +++ b/src/watcher.ts @@ -1,4 +1,4 @@ -import { Type } from 'node8-gamedig'; +import { Type } from 'gamedig'; import { Low, JSONFile } from '@commonify/lowdb'; import { GameServer, initDb, saveDb } from './game-server'; import * as discordBot from './discord-bot'; diff --git a/tsconfig.json b/tsconfig.json index 574b530..5bb6388 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,9 +1,6 @@ { "compilerOptions": { "baseUrl": ".", - "paths": { - "node8-gamedig": ["node_modules/@types/gamedig"] - }, "rootDir": "./src", "outDir": "./dist", "lib": [