Remove playerManager specific CLI tool

Remove the playerManager plugin specific CLI tool delete_players.js
This commit is contained in:
Hornwitser committed 2019-11-21 22:25:15 +01:00
1 parent bc41f7afa6
commit 5858d97857
3 files changed
+1 -20

No files matched your search

+1
View File
@@ -49,6 +49,7 @@ Version 2.0.0
- Removed broken remote combinator signaling.
- Removed factorio_version from config. The version installed is auto
detected and used instead.
- Removed the playerManager specific command CLI tools/delete_player.js.
### Breaking Changes
-19
View File
@@ -1,19 +0,0 @@
const needle = require("needle")
const config = require("./../config.json")
const cli = require("cli")
let options = cli.parse({
name: ["n", "Name of the player to delete, case sensitive", "string"],
token: [false, "Factorio auth token", "string", config.masterAuthToken]
})
if(!options.name){
cli.getUsage()
process.exit(1)
}
needle.post(config.masterURL+"/api/playerManager/deletePlayer", {
name: options.name,
token: options.token
}, (err, resp) => {
console.log(resp.body)
});
-1
View File
@@ -35,7 +35,6 @@
"bcrypt": "^3.0.6",
"bcrypt-promise": "^2.0.0",
"body-parser": "^1.18.2",
"cli": "^1.0.1",
"cli-interact": "^0.1.9",
"compression": "^1.7.2",
"cookie-parser": "^1.4.3",