Command-fix/commands/quote.js

16 lines
435 B
JavaScript
Raw Normal View History

2016-12-08 03:52:37 +00:00
var app = require('../app.js');
var logger = require('../logging.js');
exports.roles = ['Admins', 'Moderators'];
2016-12-08 03:52:37 +00:00
exports.command = function(message, reply) {
let replyMessage = 'Hello.';
2016-12-31 05:48:39 +00:00
if (reply == null) {
replyMessage = message.content.substr(message.content.indexOf(' ') + 1);
}
else {
replyMessage = `${message.mentions.users.map(user => `${user}`)} ${reply}`;
}
2016-12-08 03:52:37 +00:00
2016-12-31 05:48:39 +00:00
message.channel.sendMessage(replyMessage);
2016-12-08 03:52:37 +00:00
}