aboutsummaryrefslogtreecommitdiff
path: root/src/commands/_fake-command
diff options
context:
space:
mode:
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.');
}