aboutsummaryrefslogtreecommitdiff
path: root/src/commands/utilities
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-10-27 16:57:39 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-10-27 16:57:39 -0400
commit877537043dd2a8ba16037f061716d9c6f7a5764a (patch)
tree9e9fd2c69b415d2f548e97d0d6abbf3bc8a314a8 /src/commands/utilities
parenta1ab06dcfccef90192b90910aecdddbc505eca00 (diff)
downloadtanzanite-877537043dd2a8ba16037f061716d9c6f7a5764a.tar.gz
tanzanite-877537043dd2a8ba16037f061716d9c6f7a5764a.tar.bz2
tanzanite-877537043dd2a8ba16037f061716d9c6f7a5764a.zip
change printWidth to 130 and update dependecies
Diffstat (limited to 'src/commands/utilities')
-rw-r--r--src/commands/utilities/activity.ts5
-rw-r--r--src/commands/utilities/calculator.ts5
-rw-r--r--src/commands/utilities/suicide.ts6
3 files changed, 10 insertions, 6 deletions
diff --git a/src/commands/utilities/activity.ts b/src/commands/utilities/activity.ts
index a2ca3e2..455bbf3 100644
--- a/src/commands/utilities/activity.ts
+++ b/src/commands/utilities/activity.ts
@@ -97,7 +97,10 @@ export default class YouTubeCommand extends BushCommand {
description: 'What activity would you like to play?',
type: 'STRING',
required: true,
- choices: Object.keys(activityMap).map((key) => ({ name: key, value: activityMap[key as keyof typeof activityMap] }))
+ choices: Object.keys(activityMap).map((key) => ({
+ name: key,
+ value: activityMap[key as keyof typeof activityMap]
+ }))
}
],
clientPermissions: (m) => util.clientSendAndPermCheck(m),
diff --git a/src/commands/utilities/calculator.ts b/src/commands/utilities/calculator.ts
index 861a356..b32b29b 100644
--- a/src/commands/utilities/calculator.ts
+++ b/src/commands/utilities/calculator.ts
@@ -38,10 +38,7 @@ export default class CalculatorCommand extends BushCommand {
});
}
public override async exec(message: BushMessage | BushSlashMessage, args: { expression: string }) {
- const decodedEmbed = new MessageEmbed().addField(
- '📥 Input',
- await util.inspectCleanRedactCodeblock(args.expression, 'mma')
- );
+ const decodedEmbed = new MessageEmbed().addField('📥 Input', await util.inspectCleanRedactCodeblock(args.expression, 'mma'));
try {
const calculated = /^(9\s*?\+\s*?10)|(10\s*?\+\s*?9)$/.test(args.expression) ? '21' : evaluate(args.expression);
decodedEmbed
diff --git a/src/commands/utilities/suicide.ts b/src/commands/utilities/suicide.ts
index 3709e37..8d6f002 100644
--- a/src/commands/utilities/suicide.ts
+++ b/src/commands/utilities/suicide.ts
@@ -49,7 +49,11 @@ export default class TemplateCommand extends BushCommand {
// If the original message was a reply -> imitate it
!message.util.isSlashMessage(message) && message.reference?.messageId && message.guild && message.channel
? await message.channel.messages.fetch(message.reference!.messageId!).then(async (message1) => {
- await message1.reply({ embeds: [suicideEmbed], allowedMentions: AllowedMentions.users(), target: message1 });
+ await message1.reply({
+ embeds: [suicideEmbed],
+ allowedMentions: AllowedMentions.users(),
+ target: message1
+ });
})
: await message.util.send({ embeds: [suicideEmbed], allowedMentions: AllowedMentions.users() })
);