aboutsummaryrefslogtreecommitdiff
path: root/src/commands/fun/coinflip.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/fun/coinflip.ts')
-rw-r--r--src/commands/fun/coinflip.ts26
1 files changed, 0 insertions, 26 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);
- }
-}