commit ed6fb2fbcba43b69ec8608dabb03d137625ba3d3 Author: Welnay Date: Wed Apr 20 23:35:12 2022 +0000 Upload New File 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