hullcss-discord-bot/index.js

19 lines
454 B
JavaScript
Raw Normal View History

2022-05-10 01:17:25 +01:00
const config = require("./config.json");
const { Client, Collection } = require("discord.js");
const client = new Client({
2022-05-10 21:39:54 +01:00
intents: ["GUILDS", "GUILD_MESSAGES", "GUILD_SCHEDULED_EVENTS"],
2022-05-10 01:17:25 +01:00
});
module.exports = client;
// Global Variables
client.commands = new Collection();
client.slashCommands = new Collection();
//client.config = require("./config.json");
// Initializing the project
require("./handler")(client);
client.login(config.token);