aboutsummaryrefslogtreecommitdiff
path: root/src/listeners/other
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-06-24 00:56:16 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-06-24 00:56:16 -0400
commit4176b6258e44e4a095376aaf0f4c687244243a69 (patch)
tree3b9144be9a2045483c90d92fff05b3ca0b288e52 /src/listeners/other
parente80446e23060c0325bbd6db620920d86694ec3ce (diff)
downloadtanzanite-4176b6258e44e4a095376aaf0f4c687244243a69.tar.gz
tanzanite-4176b6258e44e4a095376aaf0f4c687244243a69.tar.bz2
tanzanite-4176b6258e44e4a095376aaf0f4c687244243a69.zip
feat(*): Began working on other punishment commands etc
Diffstat (limited to 'src/listeners/other')
-rw-r--r--src/listeners/other/consoleListener.ts17
-rw-r--r--src/listeners/other/promiseRejection.ts2
2 files changed, 2 insertions, 17 deletions
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<void> {
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',