Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const command = new discord.command.CommandGroup({
- defaultPrefix: '.',
- description: 'Fun Games for Pylon that you can implement in your server.'
- });
- command.on(
- 'roll',
- (args) => ({
- sides: args.integerOptional()
- }),
- async (message, { sides }) => {
- sides = sides || 6;
- const result = Math.ceil(Math.random() * sides);
- message.reply(
- new discord.Embed({
- title: `${message.author.getTag()}'s Roll`,
- color: (Math.random() * 0xffffff) | 0,
- description: `🎲 You Landed on **${result}!**`,
- footer: {
- text: '.help'
- }
- }).setTimestamp(new Date().toISOString())
- );
- }
- );
- command.on(
- 'gayrate',
- (args) => ({
- user: args.userOptional()
- }),
- async (message, { user }) => {
- await message.addReaction('🏳️🌈');
- if (user !== null) {
- const richEmbed = new discord.Embed();
- richEmbed.setTitle(`Gay Calculator 🏳️🌈`);
- richEmbed.setDescription(
- `${user?.getTag()} is **${(Math.random() * 101) | 0}%** Gay.`
- );
- richEmbed.setThumbnail({ url: user?.getAvatarUrl() });
- richEmbed.setColor((Math.random() * 0xffffff) | 0);
- richEmbed.addField({
- name: '**ID:**',
- value: user.id,
- inline: false
- });
- await message.reply({ content: '', embed: richEmbed });
- return;
- } else {
- const embed = new discord.Embed();
- embed.setTitle(`Gay Calculator 🏳️🌈`);
- embed.setDescription(
- `${message.author.getTag()} is **${(Math.random() * 101) | 0}%** Gay.`
- );
- embed.setColor((Math.random() * 0xffffff) | 0);
- embed
- .addField({
- name: '**ID:**',
- value: `${message.author.id}`,
- inline: false
- })
- .setThumbnail({ url: message.author.getAvatarUrl() });
- await message.reply({ content: '', embed: embed });
- return;
- }
- }
- );
- function randomChoice<T>(items: T[]): T {
- return items[(items.length * Math.random()) | 0];
- }
- command.raw('roastme', async (message) => {
- message.addReaction('🔥');
- await sleep(500);
- message.reply(
- randomChoice([
- "No, I'm feeling nice today.",
- 'Oh my God, how many times do you use this Command?!',
- 'You’re a grey sprinkle on a rainbow cupcake.',
- 'If your brain was dynamite, there wouldn’t be enough to blow your hat off.',
- 'Light travels faster than sound which is why you seemed bright until you spoke.',
- 'You have so many gaps in your teeth it looks like your tongue is in jail.',
- 'Your face makes onions cry.',
- 'Ask me to Roast you **one** more time. I dare you.',
- `No matter how hard I roast you, just remember that your name isn't Gertrude, or Humphrey.`,
- `Your secrets are always safe with me. I never even listen when you tell me them.`,
- `Hold still. I’m trying to imagine you with personality.`,
- `I’m not insulting you, I’m describing you.`,
- `I’m not a nerd, I’m just smarter than you.`,
- `You bring everyone so much joy...when you leave the room.`,
- `If you’re going to be two-faced, at least make one of them pretty.`,
- `You are like a cloud. When you disappear it’s a beautiful day.`,
- `OH MY GOD! IT SPEAKS!`,
- `Bruh, look at dis dude. Bighead lookin ass MF lmao`
- ])
- );
- });
- command.on(
- 'howpretty',
- (args) => ({
- user: args.userOptional()
- }),
- async (message, { user }) => {
- await message.addReaction('💅');
- if (user !== null) {
- const richEmbed = new discord.Embed();
- richEmbed.setTitle(`Prettiness Meter 🥰`);
- richEmbed.setDescription(
- `${user?.getTag()} scored a **${(Math.random() * 101) |
- 0}%** on the Prettiness Meter™.`
- );
- richEmbed.setThumbnail({ url: user?.getAvatarUrl() });
- richEmbed.setColor((Math.random() * 0xffffff) | 0);
- richEmbed.addField({
- name: '**ID:**',
- value: user.id,
- inline: false
- });
- await message.reply({ content: '', embed: richEmbed });
- return;
- } else {
- const embed = new discord.Embed();
- embed.setTitle(`Prettiness Meter 🥰`);
- embed.setDescription(
- `${message.author.getTag()} scored a **${(Math.random() * 101) |
- 0}%** on the Prettiness Meter™.`
- );
- embed.setColor((Math.random() * 0xffffff) | 0);
- embed
- .addField({
- name: '**ID:**',
- value: `${message.author.id}`,
- inline: false
- })
- .setThumbnail({ url: message.author.getAvatarUrl() });
- await message.reply({ content: '', embed: embed });
- return;
- }
- }
- );
- command.on(
- 'howsmart',
- (args) => ({
- user: args.userOptional()
- }),
- async (message, { user }) => {
- await message.addReaction('🧠');
- if (user !== null) {
- const richEmbed = new discord.Embed();
- richEmbed.setTitle(`Intellectual Rating 🤓`);
- richEmbed.setDescription(
- `${user?.getTag()} scored a **${(Math.random() * 101) |
- 0}%** on their IQ Test.`
- );
- richEmbed.setThumbnail({ url: user?.getAvatarUrl() });
- richEmbed.setColor((Math.random() * 0xffffff) | 0);
- richEmbed.addField({
- name: '**ID:**',
- value: user.id,
- inline: false
- });
- await message.reply({ content: '', embed: richEmbed });
- return;
- } else {
- const embed = new discord.Embed();
- embed.setTitle(`Intellectual Rating 🤓`);
- embed.setDescription(
- `${message.author.getTag()} scored a **${(Math.random() * 101) |
- 0}%** on their IQ Test.`
- );
- embed.setColor((Math.random() * 0xffffff) | 0);
- embed
- .addField({
- name: '**ID:**',
- value: `${message.author.id}`,
- inline: false
- })
- .setThumbnail({ url: message.author.getAvatarUrl() });
- await message.reply({ content: '', embed: embed });
- return;
- }
- }
- );
- command.raw('complimentme', async (message) => {
- message.addReaction('💖');
- await sleep(500);
- message.reply(
- randomChoice([
- `You are more fun than anyone or anything I know, including bubble wrap.`,
- `You are the most perfect you there is.`,
- `You are enough.`,
- `You are one of the strongest people I know.`,
- `You look great today.`,
- `You have the best smile.`,
- `Your outlook on life is amazing.`,
- `You just light up the room.`,
- `You have a cool username!`
- ])
- );
- });
- command.raw('pandafact', async (message) => {
- const req = await fetch('https://some-random-api.ml/facts/panda');
- const data = await req.json();
- await message.reply(
- new discord.Embed({
- title: 'Panda Fact! 📚',
- color: 0x00ff00,
- description: data.fact,
- footer: {
- text: 'powered by https://some-random-api.ml'
- }
- })
- );
- });
- command.raw('birdfact', async (message) => {
- const req = await fetch('https://some-random-api.ml/facts/bird');
- const data = await req.json();
- await message.reply(
- new discord.Embed({
- title: 'Bird Fact! 📚',
- color: 0x00ff00,
- description: data.fact,
- footer: {
- text: 'powered by https://some-random-api.ml'
- }
- })
- );
- });
- command.on(
- 'simp',
- (args) => ({
- user: args.userOptional()
- }),
- async (message, { user }) => {
- await message.addReaction('🥺');
- if (user !== null) {
- const richEmbed = new discord.Embed();
- richEmbed.setTitle(`Simp Calculator 💍`);
- richEmbed.setDescription(
- `${user?.getTag()} is **${(Math.random() * 101) | 0}%** Simp.`
- );
- richEmbed.setThumbnail({ url: user?.getAvatarUrl() });
- richEmbed.setColor((Math.random() * 0xffffff) | 0);
- richEmbed.addField({
- name: '**ID:**',
- value: user.id,
- inline: false
- });
- await message.reply({ content: '', embed: richEmbed });
- return;
- } else {
- const embed = new discord.Embed();
- embed.setTitle(`Simp Calculator 💍`);
- embed.setDescription(
- `${message.author.getTag()} is **${(Math.random() * 101) | 0}%** Simp.`
- );
- embed.setColor((Math.random() * 0xffffff) | 0);
- embed
- .addField({
- name: '**ID:**',
- value: `${message.author.id}`,
- inline: false
- })
- .setThumbnail({ url: message.author.getAvatarUrl() });
- await message.reply({ content: '', embed: embed });
- return;
- }
- }
- );
- command.on(
- '8ball',
- (args: { textOptional: () => any }) => ({
- text: args.textOptional()
- }),
- async (message, { text }) => {
- await message.addReaction('🎱');
- if (text === null) {
- await message.reply(
- `Sorry, you're supposed to add something for the 8ball to reply to.`
- );
- } else {
- await message.reply(
- randomChoice([
- `🎱 As I see it, yes.`,
- `🎱 Ask again later.`,
- `🎱 Better not tell you now.`,
- `🎱 Cannot predict now.`,
- `🎱 Concentrate and ask again.`,
- `🎱 Don't count on it.`,
- `🎱 It is certain.`,
- `🎱 It is decidedly so.`,
- `🎱 Most likely.`,
- `🎱 My reply is no.`,
- `🎱 My sources say no.`,
- `🎱 Outlook not so good.`,
- `🎱 Outlook good.`,
- `🎱 Reply hazy, try again.`,
- `🎱 Signs point to yes.`,
- `🎱 Very doubtful.`,
- `🎱 Without a doubt.`,
- `🎱 Yes.`,
- `🎱 Yes, definitely.`,
- `🎱 You may rely on it.`
- ])
- );
- }
- }
- );
- command.on(
- 'thotrate',
- (args) => ({
- user: args.userOptional()
- }),
- async (message, { user }) => {
- await message.addReaction('👠');
- if (user !== null) {
- const richEmbed = new discord.Embed();
- richEmbed.setTitle(`Thot Detector 😤`);
- richEmbed.setDescription(
- randomChoice([
- `[☐☐☐☐☐☐☐☐☐](https://www.youtube.com/watch?v=dQw4w9WgXcQ)`,
- `[◻️☐☐☐☐☐☐☐☐](https://www.youtube.com/watch?v=dQw4w9WgXcQ)`,
- `[◻️◻️☐☐☐☐☐☐☐](https://www.youtube.com/watch?v=dQw4w9WgXcQ)`,
- `[◻️◻️◻️☐☐☐☐☐☐](https://www.youtube.com/watch?v=dQw4w9WgXcQ)`,
- `[◻️◻️◻️◻️☐☐☐☐☐](https://www.youtube.com/watch?v=dQw4w9WgXcQ)`,
- `[◻️◻️◻️◻️◻️☐☐☐☐](https://www.youtube.com/watch?v=dQw4w9WgXcQ)`,
- `[◻️◻️◻️◻️◻️◻️☐☐☐](https://www.youtube.com/watch?v=dQw4w9WgXcQ)`,
- `[◻️◻️◻️◻️◻️◻️◻️☐☐](https://www.youtube.com/watch?v=dQw4w9WgXcQ)`,
- `[◻️◻️◻️◻️◻️◻️◻️◻️☐](https://www.youtube.com/watch?v=dQw4w9WgXcQ)`,
- `[◻️◻️◻️◻️◻️◻️◻️◻️◻️](https://www.youtube.com/watch?v=dQw4w9WgXcQ)`
- ])
- );
- richEmbed.setThumbnail({ url: user?.getAvatarUrl() });
- richEmbed.setColor((Math.random() * 0xffffff) | 0);
- richEmbed.addField({
- name: '**ID:**',
- value: user.id,
- inline: false
- });
- await message.reply({ content: '', embed: richEmbed });
- return;
- } else {
- const embed = new discord.Embed();
- embed.setTitle(`Thot Detector 😤`);
- embed.setDescription(
- randomChoice([
- `[☐☐☐☐☐☐☐☐☐](https://www.youtube.com/watch?v=dQw4w9WgXcQ)`,
- `[◻️☐☐☐☐☐☐☐☐](https://www.youtube.com/watch?v=dQw4w9WgXcQ)`,
- `[◻️◻️☐☐☐☐☐☐☐](https://www.youtube.com/watch?v=dQw4w9WgXcQ)`,
- `[◻️◻️◻️☐☐☐☐☐☐](https://www.youtube.com/watch?v=dQw4w9WgXcQ)`,
- `[◻️◻️◻️◻️☐☐☐☐☐](https://www.youtube.com/watch?v=dQw4w9WgXcQ)`,
- `[◻️◻️◻️◻️◻️☐☐☐☐](https://www.youtube.com/watch?v=dQw4w9WgXcQ)`,
- `[◻️◻️◻️◻️◻️◻️☐☐☐](https://www.youtube.com/watch?v=dQw4w9WgXcQ)`,
- `[◻️◻️◻️◻️◻️◻️◻️☐☐](https://www.youtube.com/watch?v=dQw4w9WgXcQ)`,
- `[◻️◻️◻️◻️◻️◻️◻️◻️☐](https://www.youtube.com/watch?v=dQw4w9WgXcQ)`,
- `[◻️◻️◻️◻️◻️◻️◻️◻️◻️](https://www.youtube.com/watch?v=dQw4w9WgXcQ)`
- ])
- );
- embed.setColor((Math.random() * 0xffffff) | 0);
- embed
- .addField({
- name: '**ID:**',
- value: `${message.author.id}`,
- inline: false
- })
- .setThumbnail({ url: message.author.getAvatarUrl() });
- await message.reply({ content: '', embed: embed });
- return;
- }
- }
- );
- command.on(
- 'pp',
- (args) => ({
- user: args.userOptional()
- }),
- async (message, { user }) => {
- await message.addReaction('😐');
- if (user !== null) {
- const richEmbed = new discord.Embed();
- richEmbed.setTitle(`PP Measurer (100% REAL)`);
- richEmbed.setDescription(
- randomChoice([
- `**${user?.getTag()}'s PP** \nYou have such a small PP that we can't even measure it lol, kinda embarassing.`,
- `**${user?.getTag()}'s PP** \n8D (Dude, c'mon.)`,
- `**${user?.getTag()}'s PP** \n8=D`,
- `**${user?.getTag()}'s PP** \n8==D`,
- `**${user?.getTag()}'s PP** \n8===D`,
- `**${user?.getTag()}'s PP** \n8====D`,
- `**${user?.getTag()}'s PP** \n8=====D`,
- `**${user?.getTag()}'s PP** \n8======D`,
- `**${user?.getTag()}'s PP** \n8=======D`,
- `**${user?.getTag()}'s PP** \n8========D`,
- `**${user?.getTag()}'s PP** \n8=========D`,
- `**${user?.getTag()}'s PP** \n8==========D`
- ])
- );
- richEmbed.setThumbnail({ url: user?.getAvatarUrl() });
- richEmbed.setColor((Math.random() * 0xffffff) | 0);
- richEmbed.addField({
- name: '**ID:**',
- value: user.id,
- inline: false
- });
- await message.reply({ content: '', embed: richEmbed });
- return;
- } else {
- const embed = new discord.Embed();
- embed.setTitle(`PP Measurer (100% REAL)`);
- embed.setDescription(
- randomChoice([
- `**${message.author.getTag()}'s PP** \nYou have such a small PP that we can't even measure it lol, kinda embarassing.`,
- `**${message.author.getTag()}'s PP** \n8D (Dude, c'mon.)`,
- `**${message.author.getTag()}'s PP** \n8=D`,
- `**${message.author.getTag()}'s PP** \n8==D`,
- `**${message.author.getTag()}'s PP** \n8===D`,
- `**${message.author.getTag()}'s PP** \n8====D`,
- `**${message.author.getTag()}'s PP** \n8=====D`,
- `**${message.author.getTag()}'s PP** \n8======D`,
- `**${message.author.getTag()}'s PP** \n8=======D`,
- `**${message.author.getTag()}'s PP** \n8========D`,
- `**${message.author.getTag()}'s PP** \n8=========D`,
- `**${message.author.getTag()}'s PP** \n8==========D`
- ])
- );
- embed.setColor((Math.random() * 0xffffff) | 0);
- embed
- .addField({
- name: '**ID:**',
- value: `${message.author.id}`,
- inline: false
- })
- .setThumbnail({ url: message.author.getAvatarUrl() });
- await message.reply({ content: '', embed: embed });
- return;
- }
- }
- );
- command.on(
- 'stankrate',
- (args) => ({
- user: args.userOptional()
- }),
- async (message, { user }) => {
- await message.addReaction('🦨');
- if (user !== null) {
- const richEmbed = new discord.Embed();
- richEmbed.setTitle(`Stank Meter 💩`);
- richEmbed.setDescription(
- `${user?.getTag()} is **${(Math.random() * 101) | 0}%** Stanky.`
- );
- richEmbed.setThumbnail({ url: user?.getAvatarUrl() });
- richEmbed.setColor((Math.random() * 0xffffff) | 0);
- richEmbed.addField({
- name: '**ID:**',
- value: user.id,
- inline: false
- });
- await message.reply({ content: '', embed: richEmbed });
- return;
- } else {
- const embed = new discord.Embed();
- embed.setTitle(`Stank Meter 💩`);
- embed.setDescription(
- `${message.author.getTag()} is **${(Math.random() * 101) |
- 0}%** Stanky.`
- );
- embed.setColor((Math.random() * 0xffffff) | 0);
- embed
- .addField({
- name: '**ID:**',
- value: `${message.author.id}`,
- inline: false
- })
- .setThumbnail({ url: message.author.getAvatarUrl() });
- await message.reply({ content: '', embed: embed });
- return;
- }
- }
- );
- command.on(
- 'epicgamer',
- (args) => ({
- user: args.userOptional()
- }),
- async (message, { user }) => {
- await message.addReaction('🎮');
- if (user !== null) {
- const richEmbed = new discord.Embed();
- richEmbed.setTitle(`Epic Gamer Rating`);
- richEmbed.setDescription(
- `${user?.getTag()} is **${(Math.random() * 101) | 0}%** Epic Gamer 😎.`
- );
- richEmbed.setThumbnail({ url: user?.getAvatarUrl() });
- richEmbed.setColor((Math.random() * 0xffffff) | 0);
- richEmbed.addField({
- name: '**ID:**',
- value: user.id,
- inline: false
- });
- await message.reply({ content: '', embed: richEmbed });
- return;
- } else {
- const embed = new discord.Embed();
- embed.setTitle(`Epic Gamer Rating`);
- embed.setDescription(
- `${message.author.getTag()} is **${(Math.random() * 101) |
- 0}%** Epic Gamer 😎`
- );
- embed.setColor((Math.random() * 0xffffff) | 0);
- embed
- .addField({
- name: '**ID:**',
- value: `${message.author.id}`,
- inline: false
- })
- .setThumbnail({ url: message.author.getAvatarUrl() });
- await message.reply({ content: '', embed: embed });
- return;
- }
- }
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement