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 roll = Math.floor(Math.random() * 10) + 1  
if (roll = 1) {
  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 (roll = 2) {
    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 (roll = 3) {
        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 (roll = 4) {
          message.channel.send({embed: {
            color: 0xff0000,
            title: "GET REKT KID",
            description: (``),
            footer: {text: "hahahahahahaha"},
        fields: [{
          name: "Insult:",
          value: `${user} Dumbass.`
        }],
          }})
          } else {
            if (roll = 5) {
          
                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 (roll = 6) {
                    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 (roll = 7) {
                        
                        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 (roll = 8) {
                            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 (roll = 9) {
                                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 (roll = 10) {
                                  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]'
};

@@ -378,24 +378,30 @@
   %0D%0Aif (roll
+.Value
  = 1) %7B%0D%0A  m
@@ -397,16 +397,16 @@
 = 1) %7B%0D%0A
-
   messag
@@ -710,16 +710,22 @@
 if (roll
+.Value
  = 2) %7B%0D
@@ -1054,16 +1054,22 @@
 if (roll
+.Value
  = 3) %7B%0D
@@ -1466,16 +1466,22 @@
 if (roll
+.Value
  = 4) %7B%0D
@@ -1821,16 +1821,22 @@
 if (roll
+.Value
  = 5) %7B%0D
@@ -2316,16 +2316,22 @@
 if (roll
+.Value
  = 6) %7B%0D
@@ -2856,16 +2856,22 @@
 if (roll
+.Value
  = 7) %7B%0D
@@ -3466,16 +3466,22 @@
 if (roll
+.Value
  = 8) %7B%0D
@@ -4071,16 +4071,22 @@
 if (roll
+.Value
  = 9) %7B%0D
@@ -4689,32 +4689,32 @@
        %7Delse %7B%0D%0A
-
                 
@@ -4737,16 +4737,22 @@
 if (roll
+.Value
  = 10) %7B

Update insult.js