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