From 1546da359646b89f13d17784eb7653a52ca61efd Mon Sep 17 00:00:00 2001 From: TymanWasTaken Date: Thu, 27 May 2021 14:58:21 -0600 Subject: Fix file naming --- src/listeners/client/ready.ts | 18 ++++++++++++++++++ src/listeners/client/readyListener.ts | 18 ------------------ src/listeners/client/syncSlashCommands.ts | 22 ++++++++++++++++++++++ src/listeners/client/syncSlashCommandsListener.ts | 22 ---------------------- 4 files changed, 40 insertions(+), 40 deletions(-) create mode 100644 src/listeners/client/ready.ts delete mode 100644 src/listeners/client/readyListener.ts create mode 100644 src/listeners/client/syncSlashCommands.ts delete mode 100644 src/listeners/client/syncSlashCommandsListener.ts (limited to 'src/listeners/client') diff --git a/src/listeners/client/ready.ts b/src/listeners/client/ready.ts new file mode 100644 index 0000000..8d4ac6a --- /dev/null +++ b/src/listeners/client/ready.ts @@ -0,0 +1,18 @@ +import chalk from 'chalk'; +import { BushListener } from '../../lib/extensions/BushListener'; + +export default class ReadyListener extends BushListener { + public constructor() { + super('ready', { + emitter: 'client', + event: 'ready' + }); + } + + public async exec(): Promise { + await this.client.logger.log( + chalk`{green Sucessfully logged in as {cyan ${this.client.user.tag}}.}`, + true + ); + } +} diff --git a/src/listeners/client/readyListener.ts b/src/listeners/client/readyListener.ts deleted file mode 100644 index 8d4ac6a..0000000 --- a/src/listeners/client/readyListener.ts +++ /dev/null @@ -1,18 +0,0 @@ -import chalk from 'chalk'; -import { BushListener } from '../../lib/extensions/BushListener'; - -export default class ReadyListener extends BushListener { - public constructor() { - super('ready', { - emitter: 'client', - event: 'ready' - }); - } - - public async exec(): Promise { - await this.client.logger.log( - chalk`{green Sucessfully logged in as {cyan ${this.client.user.tag}}.}`, - true - ); - } -} diff --git a/src/listeners/client/syncSlashCommands.ts b/src/listeners/client/syncSlashCommands.ts new file mode 100644 index 0000000..7835136 --- /dev/null +++ b/src/listeners/client/syncSlashCommands.ts @@ -0,0 +1,22 @@ +import { BushListener } from '../../lib/extensions/BushListener'; + +export default class SyncSlashCommandsListener extends BushListener { + constructor() { + super('syncslashcommands', { + emitter: 'client', + event: 'ready' + }); + } + async exec(): Promise { + if (this.client.config.dev && this.client.config.devGuild) { + // Use guild slash commands for instant registration in dev + await this.client.util.syncSlashCommands( + false, + this.client.config.devGuild + ); + } else { + // Use global in production + await this.client.util.syncSlashCommands(); + } + } +} diff --git a/src/listeners/client/syncSlashCommandsListener.ts b/src/listeners/client/syncSlashCommandsListener.ts deleted file mode 100644 index 7835136..0000000 --- a/src/listeners/client/syncSlashCommandsListener.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { BushListener } from '../../lib/extensions/BushListener'; - -export default class SyncSlashCommandsListener extends BushListener { - constructor() { - super('syncslashcommands', { - emitter: 'client', - event: 'ready' - }); - } - async exec(): Promise { - if (this.client.config.dev && this.client.config.devGuild) { - // Use guild slash commands for instant registration in dev - await this.client.util.syncSlashCommands( - false, - this.client.config.devGuild - ); - } else { - // Use global in production - await this.client.util.syncSlashCommands(); - } - } -} -- cgit