! Felixx
! Felixx
DIAdiscord.js - Imagine an app
Created by ! Felixx on 2/7/2024 in #djs-questions
why won't my commands send?
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!')
}
})
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!')
}
})
13 replies