This commit is contained in:
plane000
2018-05-22 20:23:08 +01:00
parent 825e1611f5
commit 41742456be
3 changed files with 8 additions and 2 deletions

View File

@@ -28,13 +28,14 @@ function addCommand(name, command, alt, usage, desc, requrePerms, functionRefere
module.exports.loadCommands = function() { module.exports.loadCommands = function() {
//general commands //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('Say', 'say', undefined, 'say [input]', 'Repeats the input', false, Commands.say);
addCommand('Version', 'version', undefined, 'version', 'Returns the version', false, Commands.version); 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('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('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('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('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 //rule commands
addCommand('Rules', 'rules', undefined, 'rules', 'Returns all the rules for the server the command was issued on', false, MultiServerCommands.rules); addCommand('Rules', 'rules', undefined, 'rules', 'Returns all the rules for the server the command was issued on', false, MultiServerCommands.rules);

View File

@@ -89,3 +89,9 @@ module.exports.undo = function (message, msg, args, discordclient) {
}) })
.catch(); .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);
}

View File

@@ -216,7 +216,6 @@ module.exports.vote = async function(message, msg, args, discordclient) {
polls[message.guild.id] = poll; polls[message.guild.id] = poll;
message.channel.send(`${message.author} voted for ${option}!`); message.channel.send(`${message.author} voted for ${option}!`);
//console.log(polls);
} else { } else {
message.channel.send(':no_entry_sign: \`You have allready voted\`'); message.channel.send(':no_entry_sign: \`You have allready voted\`');
} }