From ed6fb2fbcba43b69ec8608dabb03d137625ba3d3 Mon Sep 17 00:00:00 2001 From: Welnay Date: Wed, 20 Apr 2022 23:35:12 +0000 Subject: [PATCH] Upload New File --- index.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 index.js diff --git a/index.js b/index.js new file mode 100644 index 0000000..048599a --- /dev/null +++ b/index.js @@ -0,0 +1,9 @@ +const { Client, Collection } = require('discord.js'); +const dotenv = require('dotenv'); dotenv.config(); +const client = new Client({ intents: 513 }); + +client.commands = new Collection(); + +['CommandUtil', 'EventUtil'].forEach(handler => { require(`./utils/handlers/${handler}`)(client) }); + +client.login(process.env.DISCORD_TOKEN); \ No newline at end of file