diff options
Diffstat (limited to 'src/commands/fun')
-rw-r--r-- | src/commands/fun/coinflip.ts | 26 | ||||
-rw-r--r-- | src/commands/fun/dice.ts | 2 | ||||
-rw-r--r-- | src/commands/fun/eightBall.ts | 6 | ||||
-rw-r--r-- | src/commands/fun/minesweeper.ts | 2 |
4 files changed, 6 insertions, 30 deletions
diff --git a/src/commands/fun/coinflip.ts b/src/commands/fun/coinflip.ts deleted file mode 100644 index cd436f8..0000000 --- a/src/commands/fun/coinflip.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { BushCommand, type BushMessage, type BushSlashMessage } from '#lib'; - -export default class CoinFlipCommand extends BushCommand { - public constructor() { - super('coinflip', { - aliases: ['coinflip', 'cf'], - category: 'fun', - description: 'Flip a virtual coin.', - usage: ['coinflip'], - examples: ['coinflip'], - clientPermissions: (m) => util.clientSendAndPermCheck(m), - userPermissions: [], - slash: true - }); - } - - 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 - if (random < fall) result = 'The coin fell off the table :('; - else if (random <= 0.5 + fall / 2) result = 'Heads'; - else result = 'Tails'; - await message.util.reply(result); - } -} diff --git a/src/commands/fun/dice.ts b/src/commands/fun/dice.ts index 2f96e1c..53fc9e2 100644 --- a/src/commands/fun/dice.ts +++ b/src/commands/fun/dice.ts @@ -1,6 +1,6 @@ import { BushCommand, type BushMessage, type BushSlashMessage } from '#lib'; -export default class EightBallCommand extends BushCommand { +export default class DiceCommand extends BushCommand { public constructor() { super('dice', { aliases: ['dice', 'die'], diff --git a/src/commands/fun/eightBall.ts b/src/commands/fun/eightBall.ts index d6b0b8c..b4d2fbe 100644 --- a/src/commands/fun/eightBall.ts +++ b/src/commands/fun/eightBall.ts @@ -3,11 +3,11 @@ import { BushCommand, type BushMessage, type BushSlashMessage } from '#lib'; export default class EightBallCommand extends BushCommand { public constructor() { super('eightBall', { - aliases: ['8ball', 'eightball'], + aliases: ['eightball', '8ball'], category: 'fun', description: 'Ask questions for a randomly generated response.', - usage: ['8Ball <question>'], - examples: ['8Ball does anyone love me?'], + usage: ['eightball <question>'], + examples: ['eightball does anyone love me?'], args: [ { id: 'question', diff --git a/src/commands/fun/minesweeper.ts b/src/commands/fun/minesweeper.ts index 5e0b452..6878c05 100644 --- a/src/commands/fun/minesweeper.ts +++ b/src/commands/fun/minesweeper.ts @@ -1,5 +1,7 @@ import { BushCommand, type ArgType, type BushMessage, type BushSlashMessage } from '#lib'; import { Minesweeper } from '@notenoughupdates/discord.js-minesweeper'; +import assert from 'assert'; +assert(Minesweeper); export default class MinesweeperCommand extends BushCommand { public constructor() { |