diff --git a/commandmanager.js b/commandmanager.js index d78bd5a..8676d54 100644 --- a/commandmanager.js +++ b/commandmanager.js @@ -28,13 +28,14 @@ function addCommand(name, command, alt, usage, desc, requrePerms, functionRefere module.exports.loadCommands = function() { //general commands - addCommand('Help', 'help', undefined, 'help [command] or [help]', 'Returns a usage chart for the command requested, or returns a link to a command list', false, Commands.help); + addCommand('Help', 'help', undefined, 'help [command] or help', 'Returns a usage chart for the command requested, or returns a link to a command list', false, Commands.help); addCommand('Say', 'say', undefined, 'say [input]', 'Repeats the input', false, Commands.say); addCommand('Version', 'version', undefined, 'version', 'Returns the version', false, Commands.version); addCommand('Ping', 'ping', undefined, 'ping', 'Returns round trip time to discords servers', false, Commands.ping); addCommand('Cat', 'cat', undefined, 'cat', 'Returns a picture of a cat', false, Commands.cat); addCommand('Dog', 'dog', undefined, 'dog', 'Returns a picture of a dog', false, Commands.dog); addCommand('Undo', 'undo', undefined, 'undo', 'Deletes last message sent by Jeffery from the channel the command was issued in', false, Commands.undo); + addCommand('HUG', 'hug', undefined, 'hug', 'Sends cutest hugs', false, Commands.hug); //rule commands addCommand('Rules', 'rules', undefined, 'rules', 'Returns all the rules for the server the command was issued on', false, MultiServerCommands.rules); diff --git a/commands/commands.js b/commands/commands.js index af2ceb4..27b09af 100644 --- a/commands/commands.js +++ b/commands/commands.js @@ -89,3 +89,9 @@ module.exports.undo = function (message, msg, args, discordclient) { }) .catch(); }; + +module.exports.hug = function(message, msg, args, discordclient) { + var em = new Discord.RichEmbed(); + em.setImage('https://cdn.discordapp.com/attachments/345580737149403146/442232811605458957/cat-instantly-hugs-plush-toy.gif'); + messgae.channel.send(em); +} \ No newline at end of file diff --git a/commands/multiservercommands.js b/commands/multiservercommands.js index 79ab4ca..35d788d 100644 --- a/commands/multiservercommands.js +++ b/commands/multiservercommands.js @@ -216,7 +216,6 @@ module.exports.vote = async function(message, msg, args, discordclient) { polls[message.guild.id] = poll; message.channel.send(`${message.author} voted for ${option}!`); - //console.log(polls); } else { message.channel.send(':no_entry_sign: \`You have allready voted\`'); }