blob: 74781823eaeab653ca32c227dbc00d2454896495 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
import { Command } from 'discord-akairo';
import { Message } from 'discord.js';
import { owners } from '../../Config';
export default class SuggestBot extends Command {
public constructor() {
super('suggest', {
aliases: ['suggest'],
category: 'bot',
description: {
content: 'Suggest a feature that the bot should add.',
usage: '[suggestion]',
examples: [
'walter command please'
]
},
ratelimit: 3,
args: [
{
id: 'suggestion',
type: 'string',
prompt: {
start: 'What would you like to suggest?'
},
match: 'rest'
}
]
});
}
public async exec(msg: Message, { suggestion }): Promise<Message> {
await this.client.users.resolve(owners[0]).send(`**${msg.author.tag}** suggest; *${suggestion}*`);
return msg.channel.send('Thank you for your suggestion!');
}
}
|