-
Notifications
You must be signed in to change notification settings - Fork 0
/
bot.js
27 lines (23 loc) · 772 Bytes
/
bot.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
const { Client, GatewayIntentBits, Collection } = require("discord.js");
const fs = require("fs");
require('dotenv').config();
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.MessageContent,
GatewayIntentBits.GuildVoiceStates,
GatewayIntentBits.GuildInvites
]
});
client.buttons = new Collection();
client.context = new Collection();
client.selects = new Collection();
client.modals = new Collection();
client.commands = new Collection();
client.slashArray = new Array();
client.login(process.env.token);
fs.readdirSync("./Client/Handlers").forEach(file => {
require(`./Client/Handlers/${file}`)(client);
});