From c1a94867c79a91a61da162a000a050f554a8018d Mon Sep 17 00:00:00 2001 From: Hina <71119821+kolabbbbb@users.noreply.github.com> Date: Fri, 6 Nov 2020 12:16:41 +0800 Subject: [PATCH] Fixed more stable and faster throwing error; --- index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 837c8b6..4e3f23c 100644 --- a/index.js +++ b/index.js @@ -65,7 +65,7 @@ client.giveawaysManager = new GiveawaysManager(client, { } }); //hax -['commands', 'aliases'].forEach(x => (client[x] = new Collection())); +['commands', 'aliases'].forEach(x => (client[x] = new Collection()));//not really const load = (dir = './commands/') => { readdirSync(dir).forEach(dirs => { @@ -110,7 +110,7 @@ const load = (dir = './commands/') => { }); }; -load(); +load();//loads some cmds client.on('ready', () => { const activs = [`on ${client.guilds.cache.size} Servers! | zchelp`, `zchelp`]; @@ -120,14 +120,14 @@ client.on('ready', () => { { type: 'PLAYING' } ); }, 20000); - console.log(client.user.tag + process.env.REQUIREMODULES) + console.log(client.user.tag + process.env.REQUIREMODULES)//status; If one module is missing it will backup or kinda just like it will be assistant; throw err(e) console.log(client.config.owners) }); client.on('message', async message => { if (message.author.bot) return; - if (message.channel.type === 'dm') return; + if (message.channel.type === 'dm') return;//this let messageFetch = db.fetch(`guildMessages_${message.guild.id}`); if (messageFetch === null) return;