text: const { Client, Collection } = require('discord.js')
  const fs = require('fs')
  require('dotenv').config()
  
  const client = new Client({
      allowedMentions: {
          parse: [
              'everyone',
              'roles',
              'users'
          ],
          repliedUser: true,
      },
      shards: 'auto',
      intents: [
          'DIRECT_MESSAGES',
          'DIRECT_MESSAGE_REACTIONS',
          'DIRECT_MESSAGE_TYPING',
          'GUILDS',
          'GUILD_BANS',
          'GUILD_EMOJIS_AND_STICKERS',
          'GUILD_INTEGRATIONS',
          'GUILD_INVITES',
          'GUILD_MEMBERS',
          'GUILD_MESSAGES',
          'GUILD_MESSAGE_REACTIONS',
          'GUILD_MESSAGE_TYPING',
          'GUILD_PRESENCES',
          'GUILD_VOICE_STATES',
          'GUILD_WEBHOOKS'
      ],
      partials: [
          'CHANNEL',
          'GUILD_MEMBER',
          'MESSAGE',
          'REACTION',
          'USER'
      ],
      presence: {
          activities: [{
              name: 'Tokyo Dixcord',
              type: 'WATCHING'
          }],
          status: 'dnd'
      }
  })
  
  client.commands = new Collection()
  
  const handlers = fs.readdirSync(`./handlers`).filter((file) => file.endsWith('.js'))
  const commandFiles = fs.readdirSync(`./commands`).filter((file) => file.endsWith('.js'))
  const eventFiles = fs.readdirSync(`./events`).filter((file) => file.endsWith('.js'));
  
  (async () => {
      for (const file of handlers) {
          require(`./handlers/${file}`)(client)
      }
  
      client.commandsHandler(commandFiles, './commands')
      client.eventsHandler(eventFiles, './events')
  })()
  
  client.login(process.env.token)