More Formatting Woot

This commit is contained in:
Daniel Odendahl Jr
2017-03-23 02:02:42 +00:00
parent 40a4af36c4
commit 3b007758aa
38 changed files with 51 additions and 43 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ module.exports = class YearsCommand extends commando.Command {
message.channel.send(':x: Error! Please mention one user!');
}
else {
if (message.mentions.users.first().avatarURL === null) {
if (!message.mentions.users.first().avatarURL) {
message.channel.send(":x: Error! This user has no avatar!");
}
else {
+1 -1
View File
@@ -24,7 +24,7 @@ module.exports = class BeautifulCommand extends commando.Command {
message.channel.send(':x: Error! Please mention one user!');
}
else {
if (message.mentions.users.first().avatarURL === null) {
if (!message.mentions.users.first().avatarURL) {
message.channel.send(":x: Error! This user has no avatar!");
}
else {
+1 -1
View File
@@ -25,7 +25,7 @@ module.exports = class BobRossCommand extends commando.Command {
message.channel.send(':x: Error! Please mention one user!');
}
else {
if (message.mentions.users.first().avatarURL === null) {
if (!message.mentions.users.first().avatarURL) {
message.channel.send(":x: Error! This user has no avatar!");
}
else {
+1 -1
View File
@@ -25,7 +25,7 @@ module.exports = class RIPCommand extends commando.Command {
message.channel.send(':x: Error! Please mention one user!');
}
else {
if (message.mentions.users.first().avatarURL === null) {
if (!message.mentions.users.first().avatarURL) {
message.channel.send(":x: Error! This user has no avatar!");
}
else {
+1 -1
View File
@@ -25,7 +25,7 @@ module.exports = class SteamCardCommand extends commando.Command {
message.channel.send(':x: Error! Please mention one user!');
}
else {
if (message.mentions.users.first().avatarURL === null) {
if (!message.mentions.users.first().avatarURL) {
message.channel.send(":x: Error! This user has no avatar!");
}
else {
+1 -1
View File
@@ -29,7 +29,7 @@ module.exports = class ContactCommand extends commando.Command {
message.channel.send("Sorry, you've been banned from using this command.");
}
else {
if (messageToReport === '') {
if (!messageToReport) {
message.channel.send(':x: Error! Please do not report nothing!');
}
else {
+1 -1
View File
@@ -59,7 +59,7 @@ module.exports = class InfoCommand extends commando.Command {
.addField('Modules',
"[cleverbot-node](https://github.com/fojas/cleverbot-node), [pirate-speak](https://github.com/mikewesthad/pirate-speak), [google-translate-api](https://github.com/matheuss/google-translate-api), [urban](https://github.com/mvrilo/urban), [zalgoize](https://github.com/clux/zalgolize), [hepburn](https://github.com/lovell/hepburn), [yahoo-weather](https://github.com/mamal72/node-yahoo-weather), [imdb-api](https://github.com/worr/node-imdb-api), [string-to-binary](https://www.npmjs.com/package/string-to-binary), [roman-numeral-converter-mmxvi](https://github.com/Cein-Markey/roman-numeral-conversion-library), [cowsay](https://github.com/piuccio/cowsay), [morse](https://github.com/ecto/morse)")
.addField('Utility Modules',
"[superagent](https://github.com/visionmedia/superagent), [mathjs](http://mathjs.org/), [moment](http://momentjs.com), [moment-duration-format](https://github.com/jsmreese/moment-duration-format), [opusscript](https://github.com/abalabahaha/opusscript), [jimp](https://github.com/oliver-moran/jimp)")
"[superagent](https://github.com/visionmedia/superagent), [mathjs](http://mathjs.org/), [moment](http://momentjs.com), [moment-duration-format](https://github.com/jsmreese/moment-duration-format), [opusscript](https://github.com/abalabahaha/opusscript), [jimp](https://github.com/oliver-moran/jimp), [cheerio](https://cheerio.js.org/)")
.addField('APIs',
"[Cleverbot API](https://www.cleverbot.com/api/), [Wattpad API](https://developer.wattpad.com/docs/api), [Wordnik API](http://developer.wordnik.com/docs.html), [osu! API](https://osu.ppy.sh/p/api), [memegen.link](https://memegen.link/), [Yugioh Prices API](http://docs.yugiohprices.apiary.io/#), [YouTube Data API](https://developers.google.com/youtube/v3/), [Yoda Speak API](https://market.mashape.com/ismaelc/yoda-speak), [Discord Bots API](https://bots.discord.pw/api)")
.addField('Other Credit',
+1 -1
View File
@@ -24,7 +24,7 @@ module.exports = class MemeCommand extends commando.Command {
if (type === "list") {
message.channel.send("**Type Codes:** tenguy, afraid, older, aag, tried, biw, blb, kermit, bd, ch, cbg, wonka, cb, keanu, dsm, live, ants, doge, alwaysonbeat, ermg, facepalm, fwp, fa, fbf, fry, hipster, icanhas, crazypills, mw, noidea, regret, boat, hagrid, sohappy, captain, inigo, iw, ackbar, happening, joker, ive, ll, morpheus, mb, badchoice, mmm, jetpack, red, mordor, oprah, oag, remembers, philosoraptor, jw, patrick, rollsafe, sad-obama, sad-clinton, sadfrog, sad-bush, sad-biden, sad-boehner, saltbae, sarcasticbear, dwight, sb, ss, sf, dodgson, money, sohot, nice, awesome-awkward, awesome, awkward-awesome, awkward, fetch, success, scc, ski, officespace, interesting, toohigh, bs, center, both, winter, xy, buzz, yodawg, uno, yallgot, bad, elf, chosen");
}
else if (message.content.includes("|")) {
else if (message.content.includes(" | ")) {
if (message.content.split(" ").slice(1).join(" ").match(/^[a-zA-Z0-9|.,!?'-\s]+$/)) {
let memeQuery = message.content.split(" ").slice(2).join("-").split('-|-');
let toprow = memeQuery[0].split("?").join("~q");
+1 -1
View File
@@ -40,7 +40,7 @@ module.exports = class MathGameCommand extends commando.Command {
let randomValue2 = Math.floor(Math.random() * randomValue) + 1;
let randomExpression = randomValue1 + randomType + randomValue2;
let solved = math.eval(randomExpression);
if (randomValue === undefined) {
if (!randomValue) {
message.channel.send(':x: Error! No difficulty set! (Choose Easy, Medium, Hard, or Extreme)');
}
else {
+1 -1
View File
@@ -31,7 +31,7 @@ module.exports = class SoundBoardCommand extends commando.Command {
return message.channel.send(`:x: Error! Please be in a voice channel first!`);
}
let soundToPlay = message.content.toLowerCase().split(" ").slice(1).join(" ");
if (soundToPlay === "") {
if (!soundToPlay) {
message.channel.send(':x: Error! No sound set. Please use ;soundboard list to see a list of sounds you can play.');
}
else if (soundToPlay === 'list') {
+1 -1
View File
@@ -50,7 +50,7 @@ module.exports = class TypingGameCommand extends commando.Command {
levelWord = "ten";
break;
}
if (time === undefined) {
if (!time) {
message.channel.send(':x: Error! No difficulty set! (Choose Easy, Medium, Hard, or Extreme)');
}
else {
+2 -2
View File
@@ -19,8 +19,8 @@ module.exports = class MagicBall extends commando.Command {
let question = message.content.split(" ").slice(1).join(" ");
let answers = ['It seems the answer is yes, yes?', 'It seems the answer is no.', 'It is a little doubtful, yes?', 'It seems it is very likely to be true.'];
answers = answers[Math.floor(Math.random() * answers.length)];
if (question === "") {
question = "Not Specified."
if (!question) {
question = "Not Specified.";
}
message.channel.send("Question: " + question + "\n:8ball: " + answers + " :8ball:");
}
+1 -1
View File
@@ -19,7 +19,7 @@ module.exports = class ComplimentCommand extends commando.Command {
let thingToCompliment = message.content.split(" ").slice(1).join(" ");
let compliments = ["Your smile is contagious.", "You look great today.", "You're a smart cookie.", "I bet you make babies smile.", "You have impeccable manners.", "I like your style.", "You have the best laugh.", "I appreciate you.", "You are the most perfect you there is.", "You are enough.", "You're strong.", "Your perspective is refreshing.", "You're an awesome friend.", "You light up the room.", "You shine brighter than a shooting star.", "You deserve a hug right now.", "You should be proud of yourself.", "You're more helpful than you realize.", "You have a great sense of humor.", "You've got all the right moves!", "Is that your picture next to 'charming' in the dictionary?", "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 brave.", "You're even more beautiful on the inside than you are on the outside.", "You have the courage of your convictions.", "Your eyes are breathtaking.", "If cartoon bluebirds were real, a bunch of them would be sitting on your shoulders singing right now.", "You are making a difference.", "You're like sunshine on a rainy day.", "You bring out the best in other people.", "Your ability to recall random factoids at just the right time is impressive.", "You're a great listener.", "How is it that you always look great, even in sweatpants?", "Everything would be better if more people were like you!", "I bet you sweat glitter.", "You were cool way before hipsters were cool.", "That color is perfect on you.", "Hanging out with you is always a blast.", "You always know -- and say -- exactly what I need to hear when I need to hear it.", "You smell really good.", "You may dance like no one's watching, but everyone's watching because you're an amazing dancer!", "Being around you makes everything better!", "When you say, 'I meant to do that,' I totally believe you.", "When you're not afraid to be yourself is when you're most incredible.", "Colors seem brighter when you're around.", "You're more fun than a ball pit filled with candy. (And seriously, what could be more fun than that?)", "That thing you don't like about yourself is what makes you so interesting.", "You're wonderful.", "You have cute elbows. For reals!", "Jokes are funnier when you tell them.", "You're better than a triple-scoop ice cream cone. With sprinkles.", "Your bellybutton is kind of adorable.", "Your hair looks stunning.", "You're one of a kind!", "You're inspiring.", "If you were a box of crayons, you'd be the giant name-brand one with the built-in sharpener.", "You should be thanked more often. So thank you!!", "Our community is better because you're in it.", "Someone is getting through something hard right now because you've got their back.", "You have the best ideas.", "You always know how to find that silver lining.", "Everyone gets knocked down sometimes, but you always get back up and keep going.", "You're a candle in the darkness.", "You're a great example to others.", "Being around you is like being on a happy little vacation.", "You always know just what to say.", "You're always learning new things and trying to better yourself, which is awesome.", "If someone based an Internet meme on you, it would have impeccable grammar.", "You could survive a Zombie apocalypse.", "You're more fun than bubble wrap.", "When you make a mistake, you fix it.", "Who raised you? They deserve a medal for a job well done.", "You're great at figuring stuff out.", "Your voice is magnificent.", "The people you love are lucky to have you in their lives.", "You're like a breath of fresh air.", "You're gorgeous -- and that's the least interesting thing about you, too.", "You're so thoughtful.", "Your creative potential seems limitless.", "Your name suits you to a T.", "You're irresistible when you blush.", "Actions speak louder than words, and yours tell an incredible story.", "Somehow you make time stop and fly at the same time.", "When you make up your mind about something, nothing stands in your way.", "You seem to really know who you are.", "Any team would be lucky to have you on it.", "In high school I bet you were voted 'most likely to keep being awesome.'", "I bet you do the crossword puzzle in ink.", "Babies and small animals probably love you.", "If you were a scented candle they'd call it Perfectly Imperfect (and it would smell like summer).", "There's ordinary, and then there's you.", "You're someone's reason to smile.", "You're even better than a unicorn, because you're real.", "How do you keep being so funny and making everyone laugh?", "You have a good head on your shoulders.", "Has anyone ever told you that you have great posture?", "The way you treasure your loved ones is incredible.", "You're really something special.", "You're a gift to those around you.", "You don't deserve it."];
compliments = compliments[Math.floor(Math.random() * compliments.length)];
if (thingToCompliment === '') {
if (!thingToCompliment) {
message.reply(compliments);
}
else {
+1 -1
View File
@@ -21,7 +21,7 @@ module.exports = class MotivateCommand extends commando.Command {
}
console.log("[Command] " + message.content);
let userToMotivate = message.content.split(" ").slice(1).join(" ");
if (userToMotivate === '') {
if (!userToMotivate) {
message.reply('https://www.youtube.com/watch?v=ZXsQAXx_ao0');
}
else {
+2 -1
View File
@@ -6,7 +6,8 @@ module.exports = class QuantumCoin extends commando.Command {
name: 'quantumcoin',
aliases: [
'oddcoin',
'brokencoin'
'brokencoin',
'qcoin'
],
group: 'response',
memberName: 'quantumcoin',
+1 -1
View File
@@ -22,7 +22,7 @@ module.exports = class RoastMeCommand extends commando.Command {
let userToRoast = message.content.split(" ").slice(1).join(" ");
let roasts = ["*puts you in the oven*", "You're so stupid.", "Sorry, I can't hear you over how annoying you are.", "I've got better things to do.", "You're as dumb as Cleverbot.", "Your IQ is lower than the Mariana Trench.", "You're so annoying even the flies stay away from your stench.", "Go away, please.", "I'd give you a nasty look but you've already got one.", "It looks like your face caught fire and someone tried to put it out with a hammer.", "Your family tree must be a cactus because everyone on it is a prick.", "Someday you will go far, and I hope you stay there.", "The zoo called. They're wondering how you got out of your cage.", "I was hoping for a battle of wits, but you appear to be unarmed.", "You are proof that evolution can go in reverse.", "Brains aren't everything, in your case, they're nothing.", "Sorry I didn't get that, I don't speak idiot.", "Why is it acceptable for you to be an idiot, but not for me to point it out?", "We all sprang from apes, but you did not spring far enough.", "You're an unknown command.", "If you could go anywhere I chose, I'd choose dead.", "Even monkeys can go to space, so clearly you lack some potential.", "It's brains over brawn, yet you have neither.", "You look like a monkey, and you smell like one too.", "Even among idiots you're lacking.", "You fail even when you're doing absolutely nothing.", "If there was a vote for 'least likely to succeed' you'd win first prize.", "I'm surrounded by idiots... Or, wait, that's just you.", "I wanna go home. Well, really I just want to get away from the awful aroma you've got going there.", "Every time you touch me I have to go home and wash all my clothes nine times just to get a normal smell back.", "If I had a nickel for every brain you don't have, I'd have one dollar.", "I'd help you succeed but you're incapable."];
roasts = roasts[Math.floor(Math.random() * roasts.length)];
if (userToRoast === '') {
if (!userToRoast) {
message.reply(roasts);
}
else {
+1 -1
View File
@@ -22,7 +22,7 @@ module.exports = class RockPaperScissors extends commando.Command {
let [rps] = message.content.toLowerCase().split(" ").slice(1);
let response = ['Paper', 'Rock', 'Scissors'];
response = response[Math.floor(Math.random() * response.length)];
if (rps === undefined) {
if (!rps) {
message.channel.send(":x: Error! Your message contains nothing!");
}
else if (rps.includes("rock")) {
+1 -1
View File
@@ -21,7 +21,7 @@ module.exports = class RollChooseCommand extends commando.Command {
}
console.log("[Command] " + message.content);
let [value] = message.content.split(" ").slice(1);
if (value === undefined) {
if (!value) {
let roll = Math.floor(Math.random() * 6) + 1;
message.channel.send("You rolled a " + roll);
}
+1 -1
View File
@@ -34,7 +34,7 @@ module.exports = class DefineCommand extends commando.Command {
href = querystring.parse(href.replace('/url?', ''));
msg.edit(href.q);
}).catch(function(err) {
message.channel.send(':x: Error! No Results Found!');
msg.edit(':x: Error! No Results Found!');
});
});
}
+1 -1
View File
@@ -29,7 +29,7 @@ module.exports = class IMDBCommand extends commando.Command {
name: queryMovie
}, (err, response) => {
movie = response;
if (movie === undefined) {
if (!movie) {
message.channel.send(":x: Error! Movie not found!");
}
else {
+1 -1
View File
@@ -33,7 +33,7 @@ module.exports = class OsuCommand extends commando.Command {
type: 'string'
})
.then(function(response) {
if (response.body[0] === undefined) {
if (!response.body[0]) {
message.channel.send(":x: Error! User not found!");
}
else {
+3 -3
View File
@@ -25,13 +25,13 @@ module.exports = class UrbanDictionary extends commando.Command {
console.log("[Command] " + message.content);
let wordToDefine = message.content.split(" ").slice(1).join(" ");
urban(wordToDefine).first(function(response) {
if (response === undefined) {
if (!response) {
message.channel.send(":x: Error! Word not found!");
}
else if (response.definition === '') {
else if (!response.definition) {
message.channel.send(":x: Error! Word has no definition!");
}
else if (response.example !== '') {
else if (response.example) {
const embed = new Discord.RichEmbed()
.setColor(0x32a8f0)
.setAuthor('Urban Dictionary', 'http://a1.mzstatic.com/eu/r30/Purple71/v4/66/54/68/6654683f-cacd-4a55-1784-f14257f77874/icon175x175.png')
+1 -1
View File
@@ -25,7 +25,7 @@ module.exports = class WikipediaCommand extends commando.Command {
let description = response.body.query.pages[0].extract;
let name = response.body.query.pages[0].title;
thingToSearch = thingToSearch.split(")").join("%29");
if (description === undefined) {
if (!description) {
message.channel.send(":x: Error! Entry Not Found!");
}
else {
+1 -1
View File
@@ -33,7 +33,7 @@ module.exports = class YouTubeCommand extends commando.Command {
key: config.youtubekey
})
.then(function(response) {
if (response.body.items[0].snippet === undefined) {
if (!response.body.items[0].snippet) {
message.channel.send(':x: Error! No Video Found!');
}
else {
+1 -1
View File
@@ -17,7 +17,7 @@ module.exports = class CowsayCommand extends commando.Command {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
}
console.log("[Command] " + message.content);
if (message.content.split(" ").slice(1).join(" ") === "") {
if (!message.content.split(" ").slice(1).join(" ")) {
message.channel.send(":x: Error! You entered nothing!");
}
else {
+1 -1
View File
@@ -18,7 +18,7 @@ module.exports = class EmbedCommand extends commando.Command {
}
console.log("[Command] " + message.content);
let embedMessage = message.content.split(" ").slice(1).join(" ");
if (embedMessage === "") {
if (!embedMessage) {
message.channel.send(":x: Error! Nothing to embed!");
}
else {
+1 -1
View File
@@ -22,7 +22,7 @@ module.exports = class MorseCommand extends commando.Command {
console.log("[Command] " + message.content);
let [methodToUse] = message.content.toLowerCase().split(" ").slice(1);
let toMorse = message.content.split(" ").slice(2).join(" ");
if (toMorse === "") {
if (!toMorse) {
message.channel.send(":x: Error! Nothing to translate! Perhaps you forgot to set the method? Use either encode or decode before your text.");
}
else if (methodToUse === 'encode') {
+1 -1
View File
@@ -23,7 +23,7 @@ module.exports = class PirateCommand extends commando.Command {
console.log("[Command] " + message.content);
let turnToPirate = message.content.split(" ").slice(1).join(" ");
let pirate = pirateSpeak.translate(turnToPirate);
if (turnToPirate === "") {
if (!turnToPirate) {
message.channel.send(":x: Error! Nothing to translate!");
}
else {
+1 -1
View File
@@ -17,7 +17,7 @@ module.exports = class ReverseCommand extends commando.Command {
}
console.log("[Command] " + message.content);
let stringToReverse = message.content.split(" ").slice(1).join(" ");
if (stringToReverse === "") {
if (!stringToReverse) {
message.channel.send(":x: Error! Nothing to reverse!");
}
else {
+3 -2
View File
@@ -7,7 +7,8 @@ module.exports = class SayCommand extends commando.Command {
aliases: [
'copy',
'repeat',
'parrot'
'parrot',
'echo'
],
group: 'textedit',
memberName: 'say',
@@ -22,7 +23,7 @@ module.exports = class SayCommand extends commando.Command {
}
console.log("[Command] " + message.content);
let copycat = message.content.split(" ").slice(1).join(" ");
if (copycat === "") {
if (!copycat) {
message.channel.send(":x: Error! Nothing to say!");
}
else {
+1 -1
View File
@@ -29,7 +29,7 @@ module.exports = class ShuffleCommand extends commando.Command {
}
console.log("[Command] " + message.content);
let thingToShuffle = message.content.split(" ").slice(1).join(" ");
if (thingToShuffle === '') {
if (!thingToShuffle) {
message.channel.send(":x: Error! Nothing to shuffle!");
}
else {
+8 -2
View File
@@ -18,6 +18,7 @@ const dictionary = {
"meal": "tem flakes",
"meals": "tem flakes",
"human": "hooman",
"humans": "hoomans",
"chocolate": "choco",
"cute": "coot",
"allergic": "allergics",
@@ -191,7 +192,12 @@ module.exports = class TemmieCommand extends commando.Command {
}
console.log("[Command] " + message.content);
let thingToTranslate = message.content.split(" ").slice(1).join(" ");
let temmized = temmize(thingToTranslate);
message.channel.send(temmized);
if (!thingToTranslate) {
message.channel.send(':x: Error! Nothing to translate!');
}
else {
let temmized = temmize(thingToTranslate);
message.channel.send(temmized);
}
}
};
+1 -1
View File
@@ -25,7 +25,7 @@ module.exports = class TranslateCommand extends commando.Command {
message.channel.send("af': 'Afrikaans\nsq': 'Albanian'\n'ar': 'Arabic\nhy': 'Armenian\naz': 'Azerbaijani\neu': 'Basque\nbe': 'Belarusian\nbn': 'Bengali\nbs': 'Bosnian\nbg': 'Bulgarian\nca': 'Catalan\nceb': 'Cebuano\nny': 'Chichewa\nzh-cn': 'Chinese Simplified\nzh-tw': 'Chinese Traditional\nco': 'Corsican\nhr': 'Croatian\ncs': 'Czech\nda': 'Danish\nnl': 'Dutch\nen': 'English\neo': 'Esperanto\net': 'Estonian\ntl': 'Filipino\nfi': 'Finnish\nfr': 'French\nfy': 'Frisian\ngl': 'Galician\nka': 'Georgian\nde': 'German\nel': 'Greek\ngu': 'Gujarati\nht': 'Haitian Creole\nha': 'Hausa\nhaw': 'Hawaiian\niw': 'Hebrew\nhi': 'Hindi\nhmn': 'Hmong\nhu': 'Hungarian\nis': 'Icelandic\nig': 'Igbo\nid': 'Indonesian\nga': 'Irish\nit': 'Italian\nja': 'Japanese\njw': 'Javanese\nkn': 'Kannada\nkk': 'Kazakh\nkm': 'Khmer\nko': 'Korean\nku': 'Kurdish (Kurmanji)\nky': 'Kyrgyz\nlo': 'Lao\nla': 'Latin\nlv': 'Latvian\nlt': 'Lithuanian\nlb': 'Luxembourgish\nmk': 'Macedonian\nmg': 'Malagasy\nms': 'Malay\nml': 'Malayalam\nmt': 'Maltese\nmi': 'Maori\nmr': 'Marathi\nmn': 'Mongolian\nmy': 'Myanmar (Burmese)\nne': 'Nepali\nno': 'Norwegian\nps': 'Pashto\nfa': 'Persian\npl': 'Polish\npt': 'Portuguese\nma': 'Punjabi\nro': 'Romanian\nru': 'Russian\nsm': 'Samoan\ngd': 'Scots Gaelic\nsr': 'Serbian\nst': 'Sesotho\nsn': 'Shona\nsd': 'Sindhi\nsi': 'Sinhala\nsk': 'Slovak\nsl': 'Slovenian\nso': 'Somali\nes': 'Spanish\nsu': 'Sudanese\nsw': 'Swahili\nsv': 'Swedish\ntg': 'Tajik\nta': 'Tamil\nte': 'Telugu\nth': 'Thai\ntr': 'Turkish\nuk': 'Ukrainian\nur': 'Urdu\nuz': 'Uzbek\nvi': 'Vietnamese\ncy': 'Welsh\nxh': 'Xhosa\nyi': 'Yiddish\nyo': 'Yoruba\nzu': 'Zulu'");
}
else if (languages.entries[languageto]) {
if (thingToTranslate === "") {
if (!thingToTranslate) {
message.channel.send(":x: Error! Nothing to translate!");
}
else if (thingToTranslate.length > 200) {
+1 -1
View File
@@ -19,7 +19,7 @@ module.exports = class YodaCommand extends commando.Command {
}
console.log("[Command] " + message.content);
let turnToYoda = message.content.split(" ").slice(1).join(" ");
if (turnToYoda === "") {
if (!turnToYoda) {
message.channel.send(':x: Error! Nothing to translate!');
}
else {
+1 -1
View File
@@ -18,7 +18,7 @@ module.exports = class ZalgoCommand extends commando.Command {
}
console.log("[Command] " + message.content);
let zalgoified = zalgo(message.content.split(" ").slice(1).join(" "));
if (zalgoified === '') {
if (!zalgoified) {
message.channel.send(":x: Error! Nothing to zalgoify!");
}
else if (zalgoified.length > 1950) {
+1 -1
View File
@@ -20,7 +20,7 @@ module.exports = class AvatarCommand extends commando.Command {
message.channel.send(':x: Error! Please mention one user!');
}
else {
if (message.mentions.users.first().avatarURL === null) {
if (!message.mentions.users.first().avatarURL) {
message.channel.send(":x: Error! This person has no avatar!");
}
else {
+1 -1
View File
@@ -57,7 +57,7 @@ module.exports = class UserInfoCommand extends commando.Command {
message.channel.send(':x: Error! Please mention one user!');
}
else {
if (message.mentions.users.first().presence.game === null) {
if (!message.mentions.users.first().presence.game) {
const embed = new Discord.RichEmbed()
.setColor(color)
.setThumbnail(message.mentions.users.first().avatarURL)