aboutsummaryrefslogtreecommitdiff
path: root/src/commands/fun
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-10-26 20:07:19 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-10-26 20:07:19 -0400
commited59b7f1827ab93573b079144c3eeaa01ce40492 (patch)
tree7ceac6d61a8a25586ab9bbaf7acfbade91c97132 /src/commands/fun
parentc0a81b014a56e4d44c826f78391a930361aab122 (diff)
downloadtanzanite-ed59b7f1827ab93573b079144c3eeaa01ce40492.tar.gz
tanzanite-ed59b7f1827ab93573b079144c3eeaa01ce40492.tar.bz2
tanzanite-ed59b7f1827ab93573b079144c3eeaa01ce40492.zip
clean up, bug fixes
Diffstat (limited to 'src/commands/fun')
-rw-r--r--src/commands/fun/coinflip.ts7
-rw-r--r--src/commands/fun/dice.ts4
-rw-r--r--src/commands/fun/eightBall.ts4
-rw-r--r--src/commands/fun/minesweeper.ts4
4 files changed, 10 insertions, 9 deletions
diff --git a/src/commands/fun/coinflip.ts b/src/commands/fun/coinflip.ts
index 42e7167..2d1f70c 100644
--- a/src/commands/fun/coinflip.ts
+++ b/src/commands/fun/coinflip.ts
@@ -7,15 +7,16 @@ export default class CoinFlipCommand extends BushCommand {
category: 'fun',
description: {
content: 'Flip a virtual coin.',
- usage: 'coinflip',
+ usage: ['coinflip'],
examples: ['coinflip']
},
clientPermissions: (m) => util.clientSendAndPermCheck(m),
- userPermissions: []
+ userPermissions: [],
+ slash: true
});
}
- public override async exec(message: BushMessage | BushSlashMessage): Promise<void> {
+ public override async exec(message: BushMessage | BushSlashMessage) {
const random = Math.random();
let result: string;
const fall = message.author.id === '322862723090219008' ? 0.1 : 0.001; //dw about it
diff --git a/src/commands/fun/dice.ts b/src/commands/fun/dice.ts
index 9f18657..5058617 100644
--- a/src/commands/fun/dice.ts
+++ b/src/commands/fun/dice.ts
@@ -7,7 +7,7 @@ export default class EightBallCommand extends BushCommand {
category: 'fun',
description: {
content: 'Roll virtual dice.',
- usage: 'dice',
+ usage: ['dice'],
examples: ['dice']
},
clientPermissions: (m) => util.clientSendAndPermCheck(m),
@@ -16,7 +16,7 @@ export default class EightBallCommand extends BushCommand {
});
}
- public override async exec(message: BushMessage | BushSlashMessage): Promise<unknown> {
+ public override async exec(message: BushMessage | BushSlashMessage) {
const responses = ['1', '2', '3', '4', '5', '6'];
const answer = responses[Math.floor(Math.random() * responses.length)];
return await message.util.reply(`You rolled a **${answer}**.`);
diff --git a/src/commands/fun/eightBall.ts b/src/commands/fun/eightBall.ts
index 4e79beb..e96e006 100644
--- a/src/commands/fun/eightBall.ts
+++ b/src/commands/fun/eightBall.ts
@@ -7,7 +7,7 @@ export default class EightBallCommand extends BushCommand {
category: 'fun',
description: {
content: 'Ask questions for a randomly generated response.',
- usage: '8Ball <question>',
+ usage: ['8Ball <question>'],
examples: ['8Ball does anyone love me?']
},
args: [
@@ -35,7 +35,7 @@ export default class EightBallCommand extends BushCommand {
});
}
- public override async exec(message: BushMessage | BushSlashMessage): Promise<void> {
+ public override async exec(message: BushMessage | BushSlashMessage) {
const responses = [
'It is certain',
'Without a doubt',
diff --git a/src/commands/fun/minesweeper.ts b/src/commands/fun/minesweeper.ts
index b45dcda..c9b0a8c 100644
--- a/src/commands/fun/minesweeper.ts
+++ b/src/commands/fun/minesweeper.ts
@@ -8,7 +8,7 @@ export default class MinesweeperCommand extends BushCommand {
category: 'fun',
description: {
content: 'minesweeper command.',
- usage: 'minesweeper <rows> <columns> <mines> [--spaces] [--revealFirstCell]',
+ usage: ['minesweeper <rows> <columns> <mines> [--spaces] [--revealFirstCell]'],
examples: ['minesweeper 10 10 2']
},
args: [
@@ -66,7 +66,7 @@ export default class MinesweeperCommand extends BushCommand {
public override async exec(
message: BushMessage | BushSlashMessage,
args: { rows: number; columns: number; mines: number; spaces: boolean; reveal_first_cell: boolean }
- ): Promise<unknown> {
+ ) {
const minesweeper = new Minesweeper({
rows: args.rows ?? 9,
columns: args.columns ?? 9,