From 8cf21a4668c06e667558b5df7f8343aa05c1ac0d Mon Sep 17 00:00:00 2001 From: rhearmas <34490428+qu-ota@users.noreply.github.com> Date: Mon, 27 Jan 2020 18:44:22 -0500 Subject: [PATCH] at least these work --- commands/Jokes/compliment.js | 18 +++++++++--------- commands/Jokes/insult.js | 8 ++++---- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/commands/Jokes/compliment.js b/commands/Jokes/compliment.js index 2c04ca4..dbff7a5 100644 --- a/commands/Jokes/compliment.js +++ b/commands/Jokes/compliment.js @@ -12,18 +12,18 @@ const Compliments = [ "You are really courageous.", "Your kindness is a balm to all who encounter it.", "You're all that and a super-size bag of chips.", "On a scale from 1 to 10, you're an 11.", "You are strong.", "You're even more beautiful on the inside than you are on the outside.", "You have the courage of your convictions.", "I'm inspired by you.", "You're like a ray of sunshine on a really dreary day.", - "You are making a difference.", "Thank you for being there for me.", "You bring out the best in other people., "You make the rating scale skyrocket through the roof!"" + "You are making a difference.", "Thank you for being there for me.", "You bring out the best in other people.", "You make the rating scale skyrocket through the roof!" ]; exports.run = async (client, message, args, level) => { - if(args.length < 1) return; - - let target = message.author; - if(message.guild && message.mentions) { - target = message.mentions.first; - } - - message.channel.send(`Hey, ${target}! Wanna know something? ${Compliments[Math.floor(Math.random() * Compliments.length)]}\nBe sure to thank ${message.author} for the compliment!`); + let target = message.author; + + if(args[0]) { + target = args[0]; + } + + message.delete(); + message.channel.send(`Hey, ${target}! Wanna know something? ${Compliments[Math.floor(Math.random() * Compliments.length)]}`); }; exports.conf = { diff --git a/commands/Jokes/insult.js b/commands/Jokes/insult.js index 138613a..3e5b32d 100644 --- a/commands/Jokes/insult.js +++ b/commands/Jokes/insult.js @@ -3,13 +3,13 @@ const middle = ["douche", "ass", "turd", "rectum", "butt", "shit", "crotch", "tu const end = ["pilot", "canoe", "captain", "pirate", "hammer", "knob", "box", "jockey", "nazi", "waffle", "goblin", "blossom", "biscuit", "clown", "socket", "monster", "hound", "dragon", "balloon", "apple-john", "baggage", "barnacle", "bladder", "boar-pig", "bugbear", "bum-bailey", "canker-blossom", "clack-dish", "clotpole", "coxcomb", "codpiece", "death-token", "dewberry", "flap-dragon", "flax-wench", "flirt-gill", "foot-licker", "fustilarian", "giglet", "gudgeon", "haggard", "harpy", "hedge-pig", "horn-beast", "hugger-mugger", "joithead", "lewdster", "lout", "maggot-pie", "malt-worm", "mammet", "measle", "minnow", "miscreant", "moldwarp", "mumble-news", "nut-hook", "pigeon-egg", "pignut", "puttock", "pumpion", "ratsbane", "scut", "skinsmate", "strumpet", "varlot", "vassal", "whey-face", "wagtail", "squeegee", "turtle", "cabbage", "bomb", "sniffer", "binkie", "stump", "nugget", "whistle", "twig", "knuckle", "burger", "hotdog", "loaf", "freckle", "soldier", "kernal", "shingle", "warrior", "hemorrhoid", "fuckface", "asshole", "scumbucket", "toerag", "hackwack", "imbecile", "stunodigan", "maggot", "hipster", "gargabe", "jerkstore"]; // eslint-disable-line exports.run = async (client, message, args, level) => { - if(args.length < 1) return; - let target = message.author; - if(message.guild && message.mentions) { - target = message.mentions.first; + + if(args[0]) { + target = args[0]; } + message.delete(); message.channel.send(`Hey ${target}, you're nothing but ${start[Math.floor(Math.random() * start.length)]} ${middle[Math.floor(Math.random() * middle.length)]} ${end[Math.floor(Math.random() * end.length)]}.`); };