diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-14 21:22:09 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-14 21:22:09 -0400 |
commit | 53d2b18f7f73d5696fb7cd86d1c164a790dfdcc3 (patch) | |
tree | f95f23aad382879b35860d4d3be3642068fac8a2 /src/commands/dev/_testDuration.ts | |
parent | eaaae08aeee1fa16a4e1ad0b26fceb42885bfcde (diff) | |
download | tanzanite-53d2b18f7f73d5696fb7cd86d1c164a790dfdcc3.tar.gz tanzanite-53d2b18f7f73d5696fb7cd86d1c164a790dfdcc3.tar.bz2 tanzanite-53d2b18f7f73d5696fb7cd86d1c164a790dfdcc3.zip |
started moving over some other commands
Diffstat (limited to 'src/commands/dev/_testDuration.ts')
-rw-r--r-- | src/commands/dev/_testDuration.ts | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/src/commands/dev/_testDuration.ts b/src/commands/dev/_testDuration.ts new file mode 100644 index 0000000..3ad9aff --- /dev/null +++ b/src/commands/dev/_testDuration.ts @@ -0,0 +1,53 @@ +// import { BushCommand, BushSlashMessage } from '@lib'; +// import { stripIndents } from 'common-tags'; +// import { Message } from 'discord.js'; + +// export default class TestDurationCommand extends BushCommand { +// public constructor() { +// super('testduration', { +// aliases: ['testduration'], +// category: 'dev', +// description: { +// content: 'Tests duration parsing.', +// usage: 'testduration [reason]', +// examples: ['testduration'] +// }, +// args: [ +// { +// id: 'reason', +// type: 'contentWithDuration', +// match: 'rest', +// prompt: { +// start: 'Enter text and a duration here.', +// retry: '{error} Error parsing duration and text.', +// optional: true +// } +// } +// ], +// slash: true, +// slashOptions: [ +// { +// name: 'reason', +// description: 'Enter text and a duration here.', +// type: 'STRING', +// required: false +// } +// ], +// hidden: true, +// ownerOnly: true +// }); +// } + +// async exec( +// message: Message | BushSlashMessage, +// { reason }: { reason?: { duration: number; contentWithoutTime: string } } +// ): Promise<unknown> { +// const rawDuration = reason.duration; +// const text = reason.contentWithoutTime; +// const humanizedDuration = this.client.util.humanizeDuration(rawDuration); +// return await message.util.reply(stripIndents` +// **rawDuration:** ${rawDuration} +// **text:** ${text} +// **humanizedDuration:** ${humanizedDuration}`); +// } +// } |