Haha-Yes/commands/utility/feedback.js
2018-09-27 15:33:22 +02:00

25 lines
No EOL
810 B
JavaScript

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 would you want to send as feedback?',
type: 'string',
}
]
});
}
async run(message, { text }) {
const channel = this.client.channels.get(feedbackChannel);
channel.send(`from ${message.author}: ${text}`);
message.say('Your feedback has been sent!');
}
};