More comments and also comment stuff out

This commit is contained in:
Lukáš Horáček 2020-03-30 10:52:08 +02:00
parent 9a71454ec5
commit d722add09b
No known key found for this signature in database
GPG Key ID: E07D6630DBC17195
1 changed files with 9 additions and 2 deletions

View File

@ -26,11 +26,16 @@ require('dotenv').config()
const Discord = require('discord.js')
const client = new Discord.Client({ disabledEvents: ['TYPING_START'] })
client.commands = new Discord.Collection()
client.aliases = new Discord.Collection()
//client.commands = new Discord.Collection()
//client.aliases = new Discord.Collection()
// Command cache containing every prefix + command combination without arguments ( ~ping )
client.commandCache = {};
// Initialization function
const init = async () => {
// Load modules
// Register events
fs.readdir('./events', (err, files) => {
files.forEach(file => {
@ -38,6 +43,8 @@ const init = async () => {
});
});
// Load commands
// Login into Discord
client.login(process.env.TOKEN);
}