You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constfs=require('mz/fs');constmodules=[]client.on("ready",async()=>{console.log("Logged in to discord!");client.user.setGame("!help")// start loading modulesconstfiles=awaitfs.readdir("./modules").catch(e=>{console.error("Module directory could not be found, aborting",argv.debug ? `\n${error}` : "")process.exit(1)})for(constfileoffiles){// Make one pass and make the file completeconststat=awaitfs.stat(`./modules/${file}`).catch(e=>{console.error("Error stating file.",argv.debug ? `\n${e}` : "")})if(stat.isDirectory()){return}debug(`Loaded ./modules/${file}`)constmod=require(`./modules/${file}`)mod.init(client)modules.push(mod)};console.log(`Bot started successfully, ${modules.length} modules loaded`)});
it never gets to even print the last console.log, no matter how long I leave it to run
The text was updated successfully, but these errors were encountered:
This is my code:
it never gets to even print the last console.log, no matter how long I leave it to run
The text was updated successfully, but these errors were encountered: