2022-09-10 09:32:54 +01:00
|
|
|
const { Client, Collection } = require('discord.js');
|
|
|
|
require('dotenv').config();
|
2022-06-01 21:17:26 +01:00
|
|
|
|
2022-05-10 01:17:25 +01:00
|
|
|
const client = new Client({
|
2022-09-10 09:32:54 +01:00
|
|
|
intents: 98819,
|
2022-05-10 01:17:25 +01:00
|
|
|
});
|
|
|
|
module.exports = client;
|
|
|
|
|
|
|
|
// Global Variables
|
|
|
|
client.commands = new Collection();
|
|
|
|
client.slashCommands = new Collection();
|
|
|
|
|
|
|
|
// Initializing the project
|
2022-09-10 09:32:54 +01:00
|
|
|
require('./handler')(client);
|
2022-05-10 01:17:25 +01:00
|
|
|
|
2022-09-10 09:32:54 +01:00
|
|
|
client.login(process.env.DISCORD_TOKEN);
|