diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-19 17:42:33 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-19 17:42:33 -0400 |
commit | b228c3b222f37ceaa888f926811e6cfadf33e24a (patch) | |
tree | e3a57682ef3d13146da9ea0f1f991ea273d0d474 /src | |
parent | 0fc87a141609fe7d6a80931b73f59c872b0bd44f (diff) | |
parent | 9d7b155265e02eca627e5abdc736df70616ac9f5 (diff) | |
download | tanzanite-b228c3b222f37ceaa888f926811e6cfadf33e24a.tar.gz tanzanite-b228c3b222f37ceaa888f926811e6cfadf33e24a.tar.bz2 tanzanite-b228c3b222f37ceaa888f926811e6cfadf33e24a.zip |
Merge branch 'rewrite' of https://github.com/NotEnoughUpdates/bush-bot into rewrite
Diffstat (limited to 'src')
-rw-r--r-- | src/commands/dev/reload.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/dev/reload.ts b/src/commands/dev/reload.ts index 4898ad3..9501314 100644 --- a/src/commands/dev/reload.ts +++ b/src/commands/dev/reload.ts @@ -35,7 +35,7 @@ export default class ReloadCommand extends BushCommand { if (!message.author.isOwner()) return await message.util.reply(`${this.client.util.emojis.error} Only my developers can run this command.`); - let output: { stdout: string; stderr: string; }; + let output: { stdout: string; stderr: string }; try { const s = new Date(); output = await this.client.util.shell(`yarn build-${fast ? 'esbuild' : 'tsc'}`); @@ -44,7 +44,7 @@ export default class ReloadCommand extends BushCommand { this.client.inhibitorHandler.reloadAll(); return message.util.send(`🔁 Successfully reloaded! (${new Date().getTime() - s.getTime()}ms)`); } catch (e) { - if (output) await this.client.logger.error('reloadCommand', output) + if (output) await this.client.logger.error('reloadCommand', output); return message.util.send( `An error occurred while reloading:\n${await this.client.util.codeblock(e?.stack || e, 2048 - 34, 'js')}` ); |