Command-fix/src/commands/quote.js

12 lines
356 B
JavaScript
Raw Normal View History

exports.roles = ['Admins', 'Moderators'];
exports.command = function (message, reply) {
2016-12-08 04:52:37 +01:00
let replyMessage = 'Hello.';
2016-12-31 06:48:39 +01:00
if (reply == null) {
replyMessage = message.content.substr(message.content.indexOf(' ') + 1);
} else {
2016-12-31 06:48:39 +01:00
replyMessage = `${message.mentions.users.map(user => `${user}`)} ${reply}`;
}
2016-12-08 04:52:37 +01:00
message.channel.send(replyMessage);
};