diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-01-01 17:03:48 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-01-01 17:03:48 -0500 |
commit | 342b01c7f51dbe8beef1d3deb37822080ed6097f (patch) | |
tree | 499b1f0ef1a8870e7abe61beba5fc1be9469e363 /src/commands/fun/coinflip.ts | |
parent | c24dfae07747c71e1c1806b12bf0f0bcd3dd60dd (diff) | |
download | tanzanite-342b01c7f51dbe8beef1d3deb37822080ed6097f.tar.gz tanzanite-342b01c7f51dbe8beef1d3deb37822080ed6097f.tar.bz2 tanzanite-342b01c7f51dbe8beef1d3deb37822080ed6097f.zip |
a few things
Diffstat (limited to 'src/commands/fun/coinflip.ts')
-rw-r--r-- | src/commands/fun/coinflip.ts | 26 |
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); - } -} |