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
@@ -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) {