mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 13:56:25 +02:00
More Formatting Woot
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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') {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -25,7 +25,7 @@ module.exports = class TranslateCommand extends commando.Command {
|
||||
message.channel.send("‘af': 'Afrikaans’\n’sq': 'Albanian'\n'ar': 'Arabic’\n’hy': 'Armenian’\n’az': 'Azerbaijani’\n’eu': 'Basque’\n’be': 'Belarusian’\n’bn': 'Bengali’\n’bs': 'Bosnian’\n’bg': 'Bulgarian’\n’ca': 'Catalan’\n’ceb': 'Cebuano’\n’ny': 'Chichewa’\n’zh-cn': 'Chinese Simplified’\n’zh-tw': 'Chinese Traditional’\n’co': 'Corsican’\n’hr': 'Croatian’\n’cs': 'Czech’\n’da': 'Danish’\n’nl': 'Dutch’\n’en': 'English’\n’eo': 'Esperanto’\n’et': 'Estonian’\n’tl': 'Filipino’\n’fi': 'Finnish’\n’fr': 'French’\n’fy': 'Frisian’\n’gl': 'Galician’\n’ka': 'Georgian’\n’de': 'German’\n’el': 'Greek’\n’gu': 'Gujarati’\n’ht': 'Haitian Creole’\n’ha': 'Hausa’\n’haw': 'Hawaiian’\n’iw': 'Hebrew’\n’hi': 'Hindi’\n’hmn': 'Hmong’\n’hu': 'Hungarian’\n’is': 'Icelandic’\n’ig': 'Igbo’\n’id': 'Indonesian’\n’ga': 'Irish’\n’it': 'Italian’\n’ja': 'Japanese’\n’jw': 'Javanese’\n’kn': 'Kannada’\n’kk': 'Kazakh’\n’km': 'Khmer’\n’ko': 'Korean’\n’ku': 'Kurdish (Kurmanji)’\n’ky': 'Kyrgyz’\n’lo': 'Lao’\n’la': 'Latin’\n’lv': 'Latvian’\n’lt': 'Lithuanian’\n’lb': 'Luxembourgish’\n’mk': 'Macedonian’\n’mg': 'Malagasy’\n’ms': 'Malay’\n’ml': 'Malayalam’\n’mt': 'Maltese’\n’mi': 'Maori’\n’mr': 'Marathi’\n’mn': 'Mongolian’\n’my': 'Myanmar (Burmese)’\n’ne': 'Nepali’\n’no': 'Norwegian’\n’ps': 'Pashto’\n’fa': 'Persian’\n’pl': 'Polish’\n’pt': 'Portuguese’\n’ma': 'Punjabi’\n’ro': 'Romanian’\n’ru': 'Russian’\nsm': 'Samoan’\n’gd': 'Scots Gaelic’\n’sr': 'Serbian’\n’st': 'Sesotho’\n’sn': 'Shona’\n’sd': 'Sindhi’\n’si': 'Sinhala’\n’sk': 'Slovak’\n’sl': 'Slovenian’\n’so': 'Somali’\n’es': 'Spanish’\n’su': 'Sudanese’\n’sw': 'Swahili’\n’sv': 'Swedish’\n’tg': 'Tajik’\n’ta': 'Tamil’\n’te': 'Telugu’\n’th': 'Thai’\n’tr': 'Turkish’\n’uk': 'Ukrainian’\n’ur': 'Urdu’\n’uz': 'Uzbek’\n’vi': 'Vietnamese’\n’cy': 'Welsh’\n’xh': 'Xhosa’\n’yi': 'Yiddish’\n’yo': 'Yoruba’\n’zu': 'Zulu'");
|
||||
}
|
||||
else if (languages.entries[languageto]) {
|
||||
if (thingToTranslate === "") {
|
||||
if (!thingToTranslate) {
|
||||
message.channel.send(":x: Error! Nothing to translate!");
|
||||
}
|
||||
else if (thingToTranslate.length > 200) {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user