#Bot not responding to prefix or anything but is online

1 messages · Page 1 of 1 (latest)

near orbit

My code below is what I am using and my prefix is: ! using json "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);
    }
});```