aboutsummaryrefslogtreecommitdiff
path: root/src/commands/fun/coinflip.ts
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/coinflip.ts
parentc0a81b014a56e4d44c826f78391a930361aab122 (diff)
downloadtanzanite-ed59b7f1827ab93573b079144c3eeaa01ce40492.tar.gz
tanzanite-ed59b7f1827ab93573b079144c3eeaa01ce40492.tar.bz2
tanzanite-ed59b7f1827ab93573b079144c3eeaa01ce40492.zip
clean up, bug fixes
Diffstat (limited to 'src/commands/fun/coinflip.ts')
-rw-r--r--src/commands/fun/coinflip.ts7
1 files changed, 4 insertions, 3 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