blob: 8eeca9e18c414a260c1690d00e34ca51df4c5f63 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import { BushCommand, BushMessage, BushSlashMessage } from '@lib';
export default class TestCommand extends BushCommand {
public constructor() {
super('test', {
category: 'fake-commands',
description: { content: '', examples: '', usage: '' },
condition: (message: BushMessage) => {
if (message.content.toLowerCase().includes('ironmoon')) return true;
else return false;
},
completelyHide: true
});
}
public async exec(message: BushMessage | BushSlashMessage): Promise<unknown> {
return await message.util.reply('Your message included the word ironmoon.');
}
}
|