const Discord = require('discord.js');
exports.run = (client, message) => {
    const modlog = client.channels.find('name', 'pie-log');
    const user = message.mentions.users.first();
if (message.mentions.users.size < 1) return message.reply('You must mention someone to insult them.').catch(console.error);
message.delete()

var b = Math.floor(Math.random() * 10) + 1  
console.log(`${b}`)
if (b = 1) { console.log(`${b}`).then
  message.channel.send({embed: {
    color: 0xff0000,
    title: "GET REKT KID",
    description: (``),
    footer: {text: "hahahahahahaha"},
fields: [{
  name: "Insult:",
  value: `${user} is a failed abortion whose birth certificate is an apology from the condom factory.`
}],
  }})
} else {
if (b = 2) { console.log(`${b}`).then
    message.channel.send({embed: {
      color: 0xff0000,
      title: "GET REKT KID",
      description: (``),
      footer: {text: "hahahahahahaha"},
  fields: [{
    name: "Insult:",
    value: `${user} must have been born on a highway, because that's where most accidents happen.`
  }],
    }})
  } else {
if (b = 3) { console.log(`${b}`).then
        message.channel.send({embed: {
          color: 0xff0000,
          title: "GET REKT KID",
          description: (``),
          footer: {text: "hahahahahahaha"},
      fields: [{
        name: "Insult:",
        value: `${user} is so ugly that when your mama dropped you off at school she got a fine for littering.`
      }],
        }})
      }
      else { 
        if (b = 4) { console.log(`${b}`).then
          message.channel.send({embed: {
            color: 0xff0000,
            title: "GET REKT KID",
            description: (``),
            footer: {text: "hahahahahahaha"},
        fields: [{
          name: "Insult:",
          value: `${user} Dumbass.`
        }],
          }})
          } else {
            if (b = 5) { console.log(`${b}`).then
          
                message.channel.send({embed: {
                  color: 0xff0000,
                  title: "GET REKT KID",
                  description: (``),
                  footer: {text: "hahahahahahaha"},
              fields: [{
                name: "Insult:",
                value: `Roses are red, violets are blue, I have 5 fingers, the 3rd ones for ${user}.`
              }],
                }})
              } else {
                if (b = 6) { console.log(`${b}`).then
                    message.channel.send({embed: {
                      color: 0xff0000,
                      title: "GET REKT KID",
                      description: (``),
                      footer: {text: "hahahahahahaha"},
                  fields: [{
                    name: "Insult:",
                    value: `${user} bring everyone a lot of joy, when ${user} leaves the room.`
                  }],
                    }})
                  }
                  else {
                    if (b = 7) { console.log(`${b}`).then
                        
                        message.channel.send({embed: {
                          color: 0xff0000,
                          title: "GET REKT KID",
                          description: (``),
                          footer: {text: "hahahahahahaha"},
                      fields: [{
                        name: "Insult:",
                        value: `I wasn't born with enough middle fingers to let you know how I feel about ${user}.`
                      }],
                        }})
                      }else {
                        if (b = 8) { console.log(`${b}`).then
                            message.channel.send({embed: {
                              color: 0xff0000,
                              title: "GET REKT KID",
                              description: (``),
                              footer: {text: "hahahahahahaha"},
                          fields: [{
                            name: "Insult:",
                            value: `I'm jealous of all the people that haven't met ${user}!`
                          }],
                            }})
                          }else {
                            if (b = 9) { console.log(`${b}`).then
                                message.channel.send({embed: {
                                  color: 0xff0000,
                                  title: "GET REKT KID",
                                  description: (``),
                                  footer: {text: "hahahahahahaha"},
                              fields: [{
                                name: "Insult:",
                                value: `${user} shouldn't play hide and seek, no one would look for ${user}.`
                              }],
                                }})
                              }else {
                                if (b = 10) { console.log(`${b}`).then 
                                  message.channel.send({embed: {
                                    color: 0xff0000,
                                    title: "KARMA BITCH",
                                    description: (``),
                                    footer: {text: "God is respectful hahahahahahaha"},
                                fields: [{
                                  name: "Insult:",
                                  value: `${message.author} Well, the tables have turned. You're an idiot to trust a bot like me. KARMA.`
                                }],
                                  }})
                                  }
    }
  }
}
                  }
                }
              }
            }
          }
        }

client.channels.get(modlog.id).send({embed: {
    color: 0x0000FF,
    title: "Command input",
    description: `\n\n**Username:** \n${message.author.username} <${message.author}>\n**Command:** ;insult ${user}`,
    timestamp: new Date(),
    footer: {
      icon_url: `${message.author.avatarURL}`,
      text: `User: ${message.author.username}`
    }
  }
})
};




exports.conf = {
enabled: true,
guildOnly: false,
aliases: [],
permLevel: 0
};

exports.help = {
name: 'insult',
description: 'To make the bot insult someone.',
usage: 'insult [mention]'
};

@@ -405,38 +405,14 @@
 (b =
+=
  1) %7B
- console.log(%60$%7Bb%7D%60).then
 %0D%0A  
@@ -725,38 +725,15 @@
 (b =
+=
  2) %7B 
-console.log(%60$%7Bb%7D%60).then
 %0D%0A  
@@ -1062,38 +1062,15 @@
 (b =
+=
  3) %7B 
-console.log(%60$%7Bb%7D%60).then
 %0D%0A  
@@ -1468,38 +1468,15 @@
 (b =
+=
  4) %7B 
-console.log(%60$%7Bb%7D%60).then
 %0D%0A  
@@ -1816,38 +1816,15 @@
 (b =
+=
  5) %7B 
-console.log(%60$%7Bb%7D%60).then
 %0D%0A  
@@ -2304,38 +2304,15 @@
 (b =
+=
  6) %7B 
-console.log(%60$%7Bb%7D%60).then
 %0D%0A  
@@ -2837,38 +2837,15 @@
 (b =
+=
  7) %7B 
-console.log(%60$%7Bb%7D%60).then
 %0D%0A  
@@ -3440,38 +3440,15 @@
 (b =
+=
  8) %7B 
-console.log(%60$%7Bb%7D%60).then
 %0D%0A  
@@ -4038,38 +4038,15 @@
 (b =
+=
  9) %7B 
-console.log(%60$%7Bb%7D%60).then
 %0D%0A  
@@ -4697,39 +4697,16 @@
 (b =
+=
  10) %7B 
-console.log(%60$%7Bb%7D%60).then
  %0D%0A 

Update insult.js