|
|
@ -1,5 +1,6 @@
|
|
|
|
const { Command } = require('discord.js-commando');
|
|
|
|
const { Command } = require('discord.js-commando');
|
|
|
|
const { feedbackChannel } = require('../../config.json');
|
|
|
|
const { feedbackChannel } = require('../../config.json');
|
|
|
|
|
|
|
|
const fs = require('fs');
|
|
|
|
module.exports = class feedbackCommand extends Command {
|
|
|
|
module.exports = class feedbackCommand extends Command {
|
|
|
|
constructor(client) {
|
|
|
|
constructor(client) {
|
|
|
|
super(client, {
|
|
|
|
super(client, {
|
|
|
@ -19,7 +20,7 @@ module.exports = class feedbackCommand extends Command {
|
|
|
|
|
|
|
|
|
|
|
|
async run(message, { text }) {
|
|
|
|
async run(message, { text }) {
|
|
|
|
const channel = this.client.channels.get(feedbackChannel);
|
|
|
|
const channel = this.client.channels.get(feedbackChannel);
|
|
|
|
channel.send(`from ${message.author}: ${text}`);
|
|
|
|
channel.send(`from ${message.author} (${message.author.id}): ${text}`);
|
|
|
|
message.say('Your feedback has been sent!');
|
|
|
|
message.say('Your feedback has been sent!');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|