text: const express = require('express');
  const app = express();
  app.get("/", (request, response) => {
    const ping = new Date();
    ping.setHours(ping.getHours() - 3);
    console.log(`Ping recebido às ${ping.getUTCHours()}:${ping.getUTCMinutes()}:${ping.getUTCSeconds()}`);
    response.sendStatus(200);
  });
  app.listen(process.env.PORT); // Recebe solicitações que o deixa online
  
  const Discord = require("discord.js"); //Conexão com a livraria Discord.js
  const client = new Discord.Client(); //Criação de um novo Client
  const config = require("./config.json"); //Pegando o prefixo do bot para respostas de comandos
  
  
  
  client.on("message", message => {
  if(message.author.bot) return;
  if(message.content == `<@!${client.user.id}>` || message.content == `<@${client.user.id}>`) return message.channel.send(`Ola ${message.author} meu prefixo é \`${config.prefix}\` escreva ;help para ver todos os comandos.`)
  });
  
  
  
  client.on('message', message => {
       if (message.author.bot) return;
       if (message.channel.type == 'dm') return;
       if (!message.content.toLowerCase().startsWith(config.prefix.toLowerCase())) return;
       if (message.content.startsWith(`<@!${client.user.id}>`) || message.content.startsWith(`<@${client.user.id}>`)) return;
  
      const args = message.content
          .trim().slice(config.prefix.length)
          .split(/ +/g);
      const command = args.shift().toLowerCase();
  
      try {
          const commandFile = require(`./commands/${command}.js`)
          commandFile.run(client, message, args);
      } catch (err) {
      console.error('Erro:' + err);
    }
  });
  
  client.on("ready", () => {
    let activities = [
        `Utilize ${config.prefix}help para obter ajuda`,
        `Criador: kong `,
        `Veja o site  do bot !!`
      ],
      i = 0;
    setInterval( () => client.user.setActivity(`${activities[i++ % activities.length]}`, {
          type: "WATCHING"
        }), 1000 * 60); 
    client.user
        .setStatus("dnd")
        .catch(console.error);
  console.log("Estou Online!")
  });
  
  
  
  const usersMap = new Map();
  const LIMIT = 4;
  const TIME = 3000;
  const DIFF = 3000;
  
  client.on('message', async(message) => {
      if(message.author.bot) return;
      if(usersMap.has(message.author.id)) {
          const userData = usersMap.get(message.author.id);
          const { lastMessage, timer } = userData;
          const difference = message.createdTimestamp - lastMessage.createdTimestamp;
          let msgCount = userData.msgCount;
          console.log(difference);
  
          if(difference > DIFF) {
              clearTimeout(timer);
              console.log('Cleared Timeout');
              userData.msgCount = 1;
              userData.lastMessage = message;
              userData.timer = setTimeout(() => {
                  usersMap.delete(message.author.id);
                  console.log('Removido do mapa.')
              }, TIME);
              usersMap.set(message.author.id, userData)
          }
          else {
              ++msgCount;
              if(parseInt(msgCount) === LIMIT) {
                  let muterole = message.guild.roles.cache.find(role => role.name === 'muted');
                  if(!muterole) {
                      try{
                          muterole = await message.guild.roles.create({
                              name : "muted",
                              permissions: []
                          })
                          message.guild.channels.cache.forEach(async (channel, id) => {
                              await channel.createOverwrite(muterole, {
                                  SEND_MESSAGES: false,
                                  ADD_REACTIONS : false
                              })
                          })
                      }catch (e) {
                          console.log(e)
                      }
                  }
                  message.member.roles.add(muterole);
                  message.channel.send('PARA DE Floodar mlk do caralho voce foi mutado para parar de ser troxa :rage: ');
                  setTimeout(() => {
                      message.member.roles.remove(muterole);
                      message.channel.send('Parabens voce foi desmutado por favor nao volta a Floodar se nao ta fodido ')
                  }, 7000);
              } else {
                  userData.msgCount = msgCount;
                  usersMap.set(message.author.id, userData);
              }
          }
      }
      else {
          let fn = setTimeout(() => {
              usersMap.delete(message.author.id);
              console.log('Removido do mapa.')
          }, TIME);
          usersMap.set(message.author.id, {
              msgCount: 1,
              lastMessage : message,
              timer : fn
          });
      }
  })
  
  
  client.login(process.env.TOKEN); //Ligando o Bot caso ele consiga acessar o token