diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-25 12:38:13 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-25 12:38:13 -0400 |
commit | 6d27d53623d84127c43d3146619106e540549038 (patch) | |
tree | f797712108f295b222da6db803f175a814fa6e28 /src/commands/_fake-command | |
parent | 432b602b5416d61d7f11ade478914fc14a8fc971 (diff) | |
download | tanzanite-6d27d53623d84127c43d3146619106e540549038.tar.gz tanzanite-6d27d53623d84127c43d3146619106e540549038.tar.bz2 tanzanite-6d27d53623d84127c43d3146619106e540549038.zip |
cleaned up eval command, ported test command, fixed listeners, fixed workflow, changed args typings
Diffstat (limited to 'src/commands/_fake-command')
-rw-r--r-- | src/commands/_fake-command/ironmoon.ts (renamed from src/commands/_fake-command/test.ts) | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/commands/_fake-command/test.ts b/src/commands/_fake-command/ironmoon.ts index 8eeca9e..500b384 100644 --- a/src/commands/_fake-command/test.ts +++ b/src/commands/_fake-command/ironmoon.ts @@ -1,17 +1,19 @@ import { BushCommand, BushMessage, BushSlashMessage } from '@lib'; -export default class TestCommand extends BushCommand { +export default class IronmoonCommand extends BushCommand { public constructor() { - super('test', { + super('ironmoon', { category: 'fake-commands', description: { content: '', examples: '', usage: '' }, - condition: (message: BushMessage) => { - if (message.content.toLowerCase().includes('ironmoon')) return true; - else return false; - }, completelyHide: true }); } + public condition(message: BushMessage): boolean { + return false; + if (message.content.toLowerCase().includes('ironmoon')) return true; + else return false; + } + public async exec(message: BushMessage | BushSlashMessage): Promise<unknown> { return await message.util.reply('Your message included the word ironmoon.'); } |