-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkitbash.js
More file actions
27 lines (21 loc) · 731 Bytes
/
kitbash.js
File metadata and controls
27 lines (21 loc) · 731 Bytes
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
// Configuration File
const dotenv = require('dotenv');
dotenv.config();
// Discord Classes
const { Client, Collection, GatewayIntentBits } = require('discord.js');
require('events').EventEmitter.defaultMaxListeners = 16;
// Define Client
const client = new Client({
intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages],
allowedMentions: { parse: [] },
});
// Define Collections
client.commands = new Collection();
client.events = new Collection();
// Client Constants
client.color = '#3a3c56';
// Run Loaders
client.mongoose = require('./core/loaders/mongooseLoader');
require('./core/loaders/commandLoader')(client);
require('./core/loaders/eventLoader')(client);
client.login(process.env.DISCORD_TOKEN);