Bot not responding to prefix or anything but is online
My code below is what I am using and my prefix is:
!! using "dependencies": {
"discord.js": "^14.11.0"
}"dependencies": {
"discord.js": "^14.11.0"
}client.on('messageCreate', (message) => {
if (!message.content.startsWith(PREFIX) || message.author.bot) return;
const args = message.content.slice(PREFIX.length).trim().split(/ +/);
const command = args.shift().toLowerCase();
if (command === 'help') {
showHelp(message);
} else if (command === 'monitor') {
monitorFolder(message, args);
} else if (command === 'stopmonitor') {
stopMonitoringFolder(message, args);
} else if (command === 'setinterval') {
setIntervalForFolder(message, args);
}
});client.on('messageCreate', (message) => {
if (!message.content.startsWith(PREFIX) || message.author.bot) return;
const args = message.content.slice(PREFIX.length).trim().split(/ +/);
const command = args.shift().toLowerCase();
if (command === 'help') {
showHelp(message);
} else if (command === 'monitor') {
monitorFolder(message, args);
} else if (command === 'stopmonitor') {
stopMonitoringFolder(message, args);
} else if (command === 'setinterval') {
setIntervalForFolder(message, args);
}
});