Hey guys! Thought I would add the template I use for whenever I start a new bot. It has a simple command handler and example command! Join the Discord Server for help with this!
Hello,
Even if you have changed the code and prefix, if you put for example !, you can still make the order by something other than this prefix requested.
I get the error (node:2208) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'length' of undefined at Client.<anonymous> (/app/test.js:43:61) at Client.emit (events.js:196:13) it's at the const commandfile = bot.commands.get(command.slice(prefix)); part