a
This commit is contained in:
parent
c8f6f33481
commit
69f3f34bde
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ class ReloadCommand extends Command {
|
||||||
await this.acknowledge();
|
await this.acknowledge();
|
||||||
const path = paths.get(commandName);
|
const path = paths.get(commandName);
|
||||||
if (!path) return "I couldn't find that command!";
|
if (!path) return "I couldn't find that command!";
|
||||||
const result = await load(this.matrixClient, path, true);
|
const result = await load(this.client, path, true);
|
||||||
if (result !== commandName) return "I couldn't reload that command!";
|
if (result !== commandName) return "I couldn't reload that command!";
|
||||||
if (process.env.PM2_USAGE) {
|
if (process.env.PM2_USAGE) {
|
||||||
process.send({
|
process.send({
|
||||||
|
|
Loading…
Reference in a new issue