aboutsummaryrefslogtreecommitdiff
path: root/src/listeners/commands
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-08-27 14:45:41 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-08-27 14:45:41 -0400
commitbf9c58c3d658327d2f97a0975d8cb5ae0a4db723 (patch)
tree583325c0551878ccb7135b1493303fd07a3a89c9 /src/listeners/commands
parente9b7628a7429a013f5dcf3db5fdfb0d087c0cd81 (diff)
downloadtanzanite-bf9c58c3d658327d2f97a0975d8cb5ae0a4db723.tar.gz
tanzanite-bf9c58c3d658327d2f97a0975d8cb5ae0a4db723.tar.bz2
tanzanite-bf9c58c3d658327d2f97a0975d8cb5ae0a4db723.zip
consistency and more work on settings command
Diffstat (limited to 'src/listeners/commands')
-rw-r--r--src/listeners/commands/commandBlocked.ts2
-rw-r--r--src/listeners/commands/commandError.ts2
-rw-r--r--src/listeners/commands/commandMissingPermissions.ts2
-rw-r--r--src/listeners/commands/commandStarted.ts2
-rw-r--r--src/listeners/commands/messageBlocked.ts2
-rw-r--r--src/listeners/commands/slashStarted.ts2
6 files changed, 6 insertions, 6 deletions
diff --git a/src/listeners/commands/commandBlocked.ts b/src/listeners/commands/commandBlocked.ts
index 03e34f5..3be9d1f 100644
--- a/src/listeners/commands/commandBlocked.ts
+++ b/src/listeners/commands/commandBlocked.ts
@@ -21,7 +21,7 @@ export default class CommandBlockedListener extends BushListener {
const isSlash = !!command && !!message.util?.isSlash;
void client.console.info(
- `${isSlash ? 'Slash' : 'Command'}Blocked`,
+ `${isSlash ? 'SlashC' : 'c'}ommandBlocked`,
`<<${message.author.tag}>>${
command ? ` tried to run <<${command}>> but` : "'s message"
} was blocked because <<${reason}>>.`,
diff --git a/src/listeners/commands/commandError.ts b/src/listeners/commands/commandError.ts
index a3618e7..1cf7c08 100644
--- a/src/listeners/commands/commandError.ts
+++ b/src/listeners/commands/commandError.ts
@@ -26,7 +26,7 @@ export default class CommandErrorListener extends BushListener {
const command = _command ?? message.util?.parsed?.command;
void client.console.error(
- `${isSlash ? 'Slash' : 'Command'}Error`,
+ `${isSlash ? 'slashC' : 'c'}ommandError`,
`an error occurred with the <<${command}>> ${isSlash ? 'slash ' : ''}command in <<${channel}>> triggered by <<${
message?.author?.tag
}>>:\n` + error?.stack || error,
diff --git a/src/listeners/commands/commandMissingPermissions.ts b/src/listeners/commands/commandMissingPermissions.ts
index dc04ac2..49a2e7a 100644
--- a/src/listeners/commands/commandMissingPermissions.ts
+++ b/src/listeners/commands/commandMissingPermissions.ts
@@ -33,7 +33,7 @@ export default class CommandMissingPermissionsListener extends BushListener {
const discordFormat = util.oxford(util.surroundArray(niceMissing, '**'), 'and', '');
const consoleFormat = util.oxford(util.surroundArray(niceMissing, '<<', '>>'), 'and', '');
void client.console.info(
- 'CommandMissingPermissions',
+ 'commandMissingPermissions',
`<<${message.author.tag}>> tried to run <<${
command?.id
}>> but could not because <<${type}>> is missing the ${consoleFormat} permissions${missing.length ? 's' : ''}.`
diff --git a/src/listeners/commands/commandStarted.ts b/src/listeners/commands/commandStarted.ts
index 8b9c7e1..f74a765 100644
--- a/src/listeners/commands/commandStarted.ts
+++ b/src/listeners/commands/commandStarted.ts
@@ -10,7 +10,7 @@ export default class CommandStartedListener extends BushListener {
}
public override exec(...[message, command]: BushCommandHandlerEvents['commandStarted']): void {
void client.logger.info(
- 'Command',
+ 'commandStarted',
`The <<${command.id}>> command was used by <<${message.author.tag}>> in ${
message.channel.type === 'DM' ? `their <<DMs>>` : `<<#${message.channel.name}>> in <<${message.guild?.name}>>`
}.`,
diff --git a/src/listeners/commands/messageBlocked.ts b/src/listeners/commands/messageBlocked.ts
index a36c03d..fc64802 100644
--- a/src/listeners/commands/messageBlocked.ts
+++ b/src/listeners/commands/messageBlocked.ts
@@ -12,6 +12,6 @@ export default class MessageBlockedListener extends BushListener {
const reasons = client.consts.BlockedReasons;
if ([reasons.CLIENT, reasons.BOT].includes(reason)) return;
// return await CommandBlockedListener.handleBlocked(message as Message, null, reason);
- return void client.console.verbose(`MessageBlocked`, `<<${message.author.tag}>>'s message was blocked because ${reason}`);
+ return void client.console.verbose(`messageBlocked`, `<<${message.author.tag}>>'s message was blocked because ${reason}`);
}
}
diff --git a/src/listeners/commands/slashStarted.ts b/src/listeners/commands/slashStarted.ts
index 855c026..aaeecbc 100644
--- a/src/listeners/commands/slashStarted.ts
+++ b/src/listeners/commands/slashStarted.ts
@@ -10,7 +10,7 @@ export default class SlashStartedListener extends BushListener {
}
public override async exec(...[message, command]: BushCommandHandlerEvents['slashStarted']): Promise<unknown> {
return void client.logger.info(
- 'SlashCommand',
+ 'slashStarted',
`The <<${command.id}>> command was used by <<${message.author.tag}>> in ${
message.channel
? message.channel.type === 'DM'