From 4176b6258e44e4a095376aaf0f4c687244243a69 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Thu, 24 Jun 2021 00:56:16 -0400 Subject: feat(*): Began working on other punishment commands etc --- src/listeners/other/consoleListener.ts | 17 +---------------- src/listeners/other/promiseRejection.ts | 2 +- 2 files changed, 2 insertions(+), 17 deletions(-) (limited to 'src/listeners/other') diff --git a/src/listeners/other/consoleListener.ts b/src/listeners/other/consoleListener.ts index 50c0cf3..d1e318f 100644 --- a/src/listeners/other/consoleListener.ts +++ b/src/listeners/other/consoleListener.ts @@ -30,21 +30,6 @@ export default class ConsoleListener extends BushListener { } catch (e) { console.error(e); } - } /* else if (line.startsWith('reload')) { - exec('npx tsc', (error) => { - if (error) { - return this.client.console.error('Reload', `Error recompiling, \`${error.message}\``); - } - try { - this.client.commandHandler.reloadAll(); - this.client.listenerHandler.reloadAll(); - } catch (e) { - return this.client.console.error('Reload', e); - } - this.client.console.success('Reload', 'Reloaded successfully.'); - }); - } else if (line.startsWith('stop') || line.startsWith('exit')) { - process.exit(); - } */ + } } } diff --git a/src/listeners/other/promiseRejection.ts b/src/listeners/other/promiseRejection.ts index 2d7e316..143659a 100644 --- a/src/listeners/other/promiseRejection.ts +++ b/src/listeners/other/promiseRejection.ts @@ -10,7 +10,7 @@ export default class PromiseRejectionListener extends BushListener { public async exec(error: Error): Promise { this.client.console.error('PromiseRejection', 'An unhanded promise rejection occurred:\n' + error.stack, false); - await this.client.console.channelError({ + this.client.console.channelError({ embeds: [ { title: 'Unhandled promise rejection', -- cgit