mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-27 22:27:44 +02:00
say, embed, and code
This commit is contained in:
@@ -24,6 +24,6 @@ module.exports = class MagicBall extends commando.Command {
|
||||
let question = args.question;
|
||||
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)];
|
||||
return message.channel.send(`Question: ${question}\n:8ball: ${answers} :8ball:`);
|
||||
return message.say(`Question: ${question}\n:8ball: ${answers} :8ball:`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -31,9 +31,9 @@ module.exports = class ChooseCommand extends commando.Command {
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
let choices = args.choices;
|
||||
if (!choices.includes(' | ')) return message.channel.send(':x: Error! Split your messages with a " | "!');
|
||||
if (!choices.includes(' | ')) return message.say(':x: Error! Split your messages with a " | "!');
|
||||
choices = choices.split(" | ");
|
||||
choices = choices[Math.floor(Math.random() * choices.length)];
|
||||
return message.channel.send(`I choose ${choices}!`);
|
||||
return message.say(`I choose ${choices}!`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -22,6 +22,6 @@ module.exports = class CoinFlipCommand extends commando.Command {
|
||||
console.log(`[Command] ${message.content}`);
|
||||
let coin = ['heads', 'tails'];
|
||||
coin = coin[Math.floor(Math.random() * coin.length)];
|
||||
return message.channel.send(`It landed on ${coin}!`);
|
||||
return message.say(`It landed on ${coin}!`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -25,6 +25,6 @@ module.exports = class ComplimentCommand extends commando.Command {
|
||||
let thingToCompliment = args.thing || message.author;
|
||||
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)];
|
||||
return message.channel.send(`${thingToCompliment}, ${compliments}`);
|
||||
return message.say(`${thingToCompliment}, ${compliments}`);
|
||||
}
|
||||
};
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -22,6 +22,6 @@ module.exports = class FishyCommand extends commando.Command {
|
||||
console.log(`[Command] ${message.content}`);
|
||||
let fish = [':fish:', ':tropical_fish:', ':blowfish:'];
|
||||
fish = fish[Math.floor(Math.random() * fish.length)];
|
||||
return message.channel.send(`You caught a: ${fish}`);
|
||||
return message.say(`You caught a: ${fish}`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -21,6 +21,6 @@ module.exports = class FortuneCookieCommand extends commando.Command {
|
||||
console.log(`[Command] ${message.content}`);
|
||||
let fortunes = ["Do not seek so much to find the answer as much as to understand the question better.", "You will soon be honored by someone you respect.", "Happiness comes from a good life.", "You are contemplating some action which will bring credit upon you.", "Be prepared for extra energy.", "You are admired for your adventurous ways.", "The love of your life is sitting across from you.", "Beauty is simply beauty. Originality is magical.", "Never quit!", "Today is an ideal time to water your personal garden.", "Questions provide the key to unlocking our unlimited potential.", "Expect great things and great things will come.", "The Greatest War Sometimes Isn't On The Battlefield But Against Oneself.", "Become who you are.", "In case of fire, keep calm, pay bill and run.", "Anyone who dares to be, can never be weak.", "You broke my cookie!", "Dream lofty dreams, and as you dream, so shall you become.", "You've got what it takes, but it will take everything you've got!", "Trust your intuition.", "The wise are aware of their treasure, while fools follow their vanity.", "You will always have good luck in your personal affairs.", "You don't need talent to gain experience.", "All the preparation you've done will finally be paying off!", "Determination is the wake-up call to the human will.", "The most useless energy is trying to change what and who God so carefully created.", "You cannot become rich except by enriching others.", "Your happiness is intertwined with your outlook on life.", "Sing and rejoice, fortune is smiling on you.", "Well-arranged time is the surest sign of a well-arranged mind."];
|
||||
fortunes = fortunes[Math.floor(Math.random() * fortunes.length)];
|
||||
return message.channel.send(fortunes);
|
||||
return message.say(fortunes);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -27,6 +27,6 @@ module.exports = class MotivateCommand extends commando.Command {
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
let userToMotivate = args.thing || message.author;
|
||||
return message.channel.send(`${userToMotivate}, https://www.youtube.com/watch?v=ZXsQAXx_ao0`);
|
||||
return message.say(`${userToMotivate}, https://www.youtube.com/watch?v=ZXsQAXx_ao0`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -39,10 +39,10 @@ module.exports = class RandomNameGen extends commando.Command {
|
||||
randomLast = randomLast[Math.floor(Math.random() * randomLast.length)];
|
||||
let gender = args.gender.toLowerCase();
|
||||
if (gender === "male") {
|
||||
return message.channel.send(`${randomFirstMale} ${randomLast}`);
|
||||
return message.say(`${randomFirstMale} ${randomLast}`);
|
||||
}
|
||||
else if (gender === "female") {
|
||||
return message.channel.send(`${randomFirstFemale} ${randomLast}`);
|
||||
return message.say(`${randomFirstFemale} ${randomLast}`);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -22,6 +22,6 @@ module.exports = class OffspringCommand extends commando.Command {
|
||||
console.log(`[Command] ${message.content}`);
|
||||
let gender = ['boy', 'girl'];
|
||||
gender = gender[Math.floor(Math.random() * gender.length)];
|
||||
return message.channel.send(`It's a ${gender}!`);
|
||||
return message.say(`It's a ${gender}!`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -23,6 +23,6 @@ module.exports = class QuantumCoin extends commando.Command {
|
||||
console.log(`[Command] ${message.content}`);
|
||||
let qcoin = ['on nothing', 'on NaN', 'on 0', 'in the air', 'on null'];
|
||||
qcoin = qcoin[Math.floor(Math.random() * qcoin.length)];
|
||||
return message.channel.send(`It landed ${qcoin}.`);
|
||||
return message.say(`It landed ${qcoin}.`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -26,6 +26,6 @@ module.exports = class RateWaifuCommand extends commando.Command {
|
||||
console.log(`[Command] ${message.content}`);
|
||||
let waifuToRate = args.waifu;
|
||||
let rating = Math.floor(Math.random() * 10) + 1;
|
||||
return message.channel.send(`I'd give ${waifuToRate} a ${rating}/10!`);
|
||||
return message.say(`I'd give ${waifuToRate} a ${rating}/10!`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -32,7 +32,7 @@ module.exports = class RoastMeCommand extends commando.Command {
|
||||
return message.reply(roasts);
|
||||
}
|
||||
else {
|
||||
return message.channel.send(`${userToRoast}, ${roasts}`);
|
||||
return message.say(`${userToRoast}, ${roasts}`);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -28,6 +28,6 @@ module.exports = class RollChooseCommand extends commando.Command {
|
||||
console.log(`[Command] ${message.content}`);
|
||||
let value = args.number;
|
||||
let roll = Math.floor(Math.random() * value) + 1;
|
||||
return message.channel.send(`You rolled a ${roll}.`);
|
||||
return message.say(`You rolled a ${roll}.`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -23,6 +23,6 @@ module.exports = class RouletteCommand extends commando.Command {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
return message.channel.send(`I choose ${message.guild.members.random().displayName}!`);
|
||||
return message.say(`I choose ${message.guild.members.random().displayName}!`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -26,6 +26,6 @@ module.exports = class ShipCommand extends commando.Command {
|
||||
console.log(`[Command] ${message.content}`);
|
||||
let thingToShip = args.things;
|
||||
let percentage = Math.floor(Math.random() * 100) + 1;
|
||||
return message.channel.send(`I'd give ${thingToShip} a ${percentage}%!`);
|
||||
return message.say(`I'd give ${thingToShip} a ${percentage}%!`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -21,6 +21,6 @@ module.exports = class VocaloidSongRndm extends commando.Command {
|
||||
console.log(`[Command] ${message.content}`);
|
||||
let songs = ["https://www.youtube.com/watch?v=ebAKoRcYFTA", "https://www.youtube.com/watch?v=Mqps4anhz0Q", "https://www.youtube.com/watch?v=AUEiHQOCQ2M", "https://www.youtube.com/watch?v=oyteTOBxRm8", "https://www.youtube.com/watch?v=uwwU55zBYlQ", "https://www.youtube.com/watch?v=sSYoz0JmnZo", "https://www.youtube.com/watch?v=NpU4dsXW6EI", "https://www.youtube.com/watch?v=MzyXD8bNbvk", "https://www.youtube.com/watch?v=hyV4qGAPKac", "https://www.youtube.com/watch?v=pywNi6gD1FA", "https://www.youtube.com/watch?v=17FEtaiWdVg", "https://www.youtube.com/watch?v=fmrA-gxJxgQ", "https://www.youtube.com/watch?v=yOBWgSPrYVA", "https://www.youtube.com/watch?v=nCaqf9WhqOY", "https://www.youtube.com/watch?v=cQKGUgOfD8U", "https://www.youtube.com/watch?v=sK92X82T3Sk", "https://www.youtube.com/watch?v=AH5_sKwDw1E", "https://www.youtube.com/watch?v=dw-KJNqcK-Q", "https://www.youtube.com/watch?v=X47JmmqbMvc", "https://www.youtube.com/watch?v=ojQPpYVQt7U", "https://www.amazon.com/Gogatsu-Yamai-feat-Kagamine-Len/dp/B00P1BG27S", "https://www.youtube.com/watch?v=N1-Z8uslIsI", "https://www.youtube.com/watch?v=EAgk-t2zzqw", "https://www.youtube.com/watch?v=uLBC2kWYFo8", "https://www.youtube.com/watch?v=OXHYIlkZLUU", "https://www.youtube.com/watch?v=ObIa9wXbyMQ", "https://www.youtube.com/watch?v=dGNoCICGmo0", "https://www.youtube.com/watch?v=LcoyEZkTKfY", "https://www.youtube.com/watch?v=mKHaW0qd5Mw", "https://www.youtube.com/watch?v=GG627DYk_E4", "https://www.youtube.com/watch?v=jTm6Q5Pj_Jo", "https://www.youtube.com/watch?v=TVeIDmk3rBo", "https://www.youtube.com/watch?v=1K3in6w9tt4", "https://www.youtube.com/watch?v=07r67gGbtLQ", "https://www.youtube.com/watch?v=243vPl8HdVk", "https://www.youtube.com/watch?v=zweVJrnE1uY", "https://www.youtube.com/watch?v=RKtoreimcQ8", "https://www.youtube.com/watch?v=Je6dCVfHvkU", "https://www.youtube.com/watch?v=UxFv12y_evM", "https://www.youtube.com/watch?v=2HegQtmJeto", "https://www.youtube.com/watch?v=8-Epnpruww0"];
|
||||
songs = songs[Math.floor(Math.random() * songs.length)];
|
||||
return message.channel.send(songs);
|
||||
return message.say(songs);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user