Added feedback command
This commit is contained in:
parent
d249f2fcb6
commit
c5b103596a
1 changed files with 25 additions and 0 deletions
25
commands/utility/feedback.js
Normal file
25
commands/utility/feedback.js
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
const { Command } = require('discord.js-commando');
|
||||||
|
const { feedbackChannel } = require('../../config.json');
|
||||||
|
module.exports = class sayCommand extends Command {
|
||||||
|
constructor(client) {
|
||||||
|
super(client, {
|
||||||
|
name: 'feedback',
|
||||||
|
group: 'utility',
|
||||||
|
memberName: 'feedback',
|
||||||
|
description: `Send feedback`,
|
||||||
|
args: [
|
||||||
|
{
|
||||||
|
key: 'text',
|
||||||
|
prompt: 'What do you want to send as a feedback?',
|
||||||
|
type: 'string',
|
||||||
|
}
|
||||||
|
]
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
async run(message, { text }) {
|
||||||
|
const channel = this.client.channels.get(feedbackChannel);
|
||||||
|
channel.send(`from ${message.author}: ${text}`);
|
||||||
|
message.say('Your feedback have been sent!');
|
||||||
|
}
|
||||||
|
};
|
Loading…
Reference in a new issue