mirror of
https://github.com/a-sync/game-server-watcher.git
synced 2026-08-03 02:48:46 -04:00
wip
This commit is contained in:
49
.eslintrc.json
Normal file
49
.eslintrc.json
Normal file
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"extends": "eslint:recommended",
|
||||
"env": {
|
||||
"node": true,
|
||||
"es6": true
|
||||
},
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 2021
|
||||
},
|
||||
"rules": {
|
||||
"arrow-spacing": ["warn", { "before": true, "after": true }],
|
||||
"brace-style": ["error", "stroustrup", { "allowSingleLine": true }],
|
||||
"comma-dangle": ["error", "always-multiline"],
|
||||
"comma-spacing": "error",
|
||||
"comma-style": "error",
|
||||
"curly": ["error", "multi-line", "consistent"],
|
||||
"dot-location": ["error", "property"],
|
||||
"handle-callback-err": "off",
|
||||
"indent": ["error", "tab"],
|
||||
"keyword-spacing": "error",
|
||||
"max-nested-callbacks": ["error", { "max": 4 }],
|
||||
"max-statements-per-line": ["error", { "max": 2 }],
|
||||
"no-console": "off",
|
||||
"no-empty-function": "error",
|
||||
"no-floating-decimal": "error",
|
||||
"no-inline-comments": "error",
|
||||
"no-lonely-if": "error",
|
||||
"no-multi-spaces": "error",
|
||||
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1, "maxBOF": 0 }],
|
||||
"no-shadow": ["error", { "allow": ["err", "resolve", "reject"] }],
|
||||
"no-trailing-spaces": ["error"],
|
||||
"no-var": "error",
|
||||
"object-curly-spacing": ["error", "always"],
|
||||
"prefer-const": "error",
|
||||
"quotes": ["error", "single"],
|
||||
"semi": ["error", "always"],
|
||||
"space-before-blocks": "error",
|
||||
"space-before-function-paren": ["error", {
|
||||
"anonymous": "never",
|
||||
"named": "never",
|
||||
"asyncArrow": "always"
|
||||
}],
|
||||
"space-in-parens": "error",
|
||||
"space-infix-ops": "error",
|
||||
"space-unary-ops": "error",
|
||||
"spaced-comment": "error",
|
||||
"yoda": "error"
|
||||
}
|
||||
}
|
||||
6
.github/workflows/deploy.yml
vendored
6
.github/workflows/deploy.yml
vendored
@@ -2,9 +2,9 @@ name: ☁️ Deploy to the cloud
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
# push:
|
||||
# branches:
|
||||
# - master
|
||||
|
||||
jobs:
|
||||
push:
|
||||
|
||||
@@ -41,9 +41,10 @@ The project is in a very early stage. More detailed customization options and fe
|
||||
* more integrations: slack, ms teams, twillio (email, sms)
|
||||
* ~~web ui to manage & configure the servers and bots~~
|
||||
* put custom information in the channel name or bot status (online status indicator, number of players, map)
|
||||
* github action workflows to deploy to other cloud providers (aws, linode, atlantic, vultr etc.)
|
||||
* github action workflows to deploy to other cloud providers (aws, linode, atlantic, vultr, pikapods, okteto, ibm cloud etc.)
|
||||
* SQL, JSON or object store database support (postgres, redis etc.)
|
||||
* run as stateless serverless function (aws lambda, azure function, vercel etc.)
|
||||
* run as stateless serverless function (aws lambda, azure function, heroku, vercel etc.)
|
||||
* [pterodactyl](https://pterodactyl.io) egg release
|
||||
|
||||
# Getting Started
|
||||
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See [deployment](#deployment) for notes on how to deploy the project on a live system.
|
||||
@@ -209,3 +210,4 @@ All other libraries and dependencies are listed in the _package.json file (depen
|
||||
* https://github.com/Fabricio-191/valve-server-query
|
||||
* https://github.com/sbuggay/srcds-info-proxy
|
||||
* https://github.com/DiscordGSM/DiscordGSM
|
||||
* https://github.com/EndBug/game-tracker
|
||||
|
||||
2178
package-lock.json
generated
2178
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
29
package.json
29
package.json
@@ -8,7 +8,13 @@
|
||||
"dev": "nodemon -e ts --exec \"npx tsc --incremental && node ./dist/server.js || exit 1\"",
|
||||
"build": "tsc"
|
||||
},
|
||||
"keywords": ["game-server", "gamedig", "discord-bot", "telegram-bot", "steam-api"],
|
||||
"keywords": [
|
||||
"game-server",
|
||||
"gamedig",
|
||||
"discord-bot",
|
||||
"telegram-bot",
|
||||
"steam-api"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/a-sync/game-server-watcher.git"
|
||||
@@ -18,25 +24,26 @@
|
||||
"dependencies": {
|
||||
"@commonify/lowdb": "^3.0.0",
|
||||
"axios": "^0.27.2",
|
||||
"discord.js": "^14.3.0",
|
||||
"dotenv": "^16.0.2",
|
||||
"gamedig": "^4.0.5",
|
||||
"grammy": "^1.11.0",
|
||||
"discord.js": "^14.7.1",
|
||||
"dotenv": "^16.0.3",
|
||||
"gamedig": "^4.0.6",
|
||||
"grammy": "^1.14.1",
|
||||
"mustache": "^4.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/gamedig": "^3.0.2",
|
||||
"@types/gamedig": "^4.0.0",
|
||||
"@types/node": "^16.9.0",
|
||||
"nodemon": "^2.0.19",
|
||||
"typescript": "^4.8.2"
|
||||
"eslint": "^8.34.0",
|
||||
"nodemon": "^2.0.20",
|
||||
"typescript": "^4.9.5"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.9.0"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"bufferutil": "^4.0.6",
|
||||
"bufferutil": "^4.0.7",
|
||||
"erlpack": "github:discord/erlpack",
|
||||
"utf-8-validate": "^5.0.9",
|
||||
"zlib-sync": "^0.1.7"
|
||||
"utf-8-validate": "^6.0.2",
|
||||
"zlib-sync": "^0.1.8"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user