Update to latest eris-fleet, fixed reload bug
This commit is contained in:
parent
e738bc2468
commit
33c00f2954
3 changed files with 9 additions and 9 deletions
|
@ -5,8 +5,8 @@ class ReloadCommand extends Command {
|
|||
run() {
|
||||
return new Promise((resolve) => {
|
||||
const owners = process.env.OWNER.split(",");
|
||||
if (!owners.includes(this.message.author.id)) resolve("Only the bot owner can reload commands!");
|
||||
if (this.args.length === 0) resolve("You need to provide a command to reload!");
|
||||
if (!owners.includes(this.message.author.id)) return resolve("Only the bot owner can reload commands!");
|
||||
if (this.args.length === 0) return resolve("You need to provide a command to reload!");
|
||||
this.ipc.broadcast("reload", this.args[0]);
|
||||
this.ipc.register("reloadSuccess", () => {
|
||||
this.ipc.unregister("reloadSuccess");
|
||||
|
|
10
package-lock.json
generated
10
package-lock.json
generated
|
@ -15,7 +15,7 @@
|
|||
"dotenv": "^10.0.0",
|
||||
"emoji-regex": "^10.0.0",
|
||||
"eris": "^0.16.1",
|
||||
"eris-fleet": "github:esmBot/eris-fleet#development",
|
||||
"eris-fleet": "github:esmBot/eris-fleet#master",
|
||||
"file-type": "^16.1.0",
|
||||
"format-duration": "^1.4.0",
|
||||
"lavacord": "^1.1.9",
|
||||
|
@ -1530,8 +1530,8 @@
|
|||
}
|
||||
},
|
||||
"node_modules/eris-fleet": {
|
||||
"version": "0.3.9-dev.0",
|
||||
"resolved": "git+ssh://git@github.com/esmBot/eris-fleet.git#c9646800a2a6b9259d912f2051d6362860f88098",
|
||||
"version": "1.0.0",
|
||||
"resolved": "git+ssh://git@github.com/esmBot/eris-fleet.git#9eb4d8ad143889e63b4622af026428c15de59861",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"eris": "*"
|
||||
|
@ -5735,8 +5735,8 @@
|
|||
}
|
||||
},
|
||||
"eris-fleet": {
|
||||
"version": "git+ssh://git@github.com/esmBot/eris-fleet.git#c9646800a2a6b9259d912f2051d6362860f88098",
|
||||
"from": "eris-fleet@github:esmBot/eris-fleet#development",
|
||||
"version": "git+ssh://git@github.com/esmBot/eris-fleet.git#9eb4d8ad143889e63b4622af026428c15de59861",
|
||||
"from": "eris-fleet@esmBot/eris-fleet#master",
|
||||
"requires": {}
|
||||
},
|
||||
"erlpack": {
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
"dotenv": "^10.0.0",
|
||||
"emoji-regex": "^10.0.0",
|
||||
"eris": "^0.16.1",
|
||||
"eris-fleet": "github:esmBot/eris-fleet#development",
|
||||
"eris-fleet": "github:esmBot/eris-fleet#master",
|
||||
"file-type": "^16.1.0",
|
||||
"format-duration": "^1.4.0",
|
||||
"lavacord": "^1.1.9",
|
||||
|
|
Loading…
Reference in a new issue