client.on('message', message => { if (!message.content.startsWith(prefix) || message.auther.bot) return; const args = message.content.slice(prefix.length).split(/ +/); const command = args.shift().toLowerCase(); //test cmd if (command === 'test'){ message.channel.send('The Bot is working!') }})