mirror of
https://github.com/yuzu-emu/Command-fix
synced 2024-11-24 17:48:22 +00:00
15 lines
445 B
JavaScript
15 lines
445 B
JavaScript
var app = require('../app.js');
|
|
var logger = require('../logging.js');
|
|
|
|
exports.roles = ['Admins', 'Moderators', 'Secret'];
|
|
exports.command = function(message, reply) {
|
|
let replyMessage = 'Hello.';
|
|
if (reply == null) {
|
|
replyMessage = message.content.substr(message.content.indexOf(' ') + 1);
|
|
}
|
|
else {
|
|
replyMessage = `${message.mentions.users.map(user => `${user}`)} ${reply}`;
|
|
}
|
|
|
|
message.channel.sendMessage(replyMessage);
|
|
}
|