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