Help with my discord bot

My discord bot is receiving messages but its not responding to them! and i don’t know why, also im new to this kind of stuff so i probably made a mistake somewhere

const express = require("express");
const { Client, Intents } = require("discord.js");

const app = express();

app.get("/", (req, res) => {
  res.send("Hello world!");
});

const { GatewayIntentBits } = require("discord.js");
const client = new Client({
    intents: [
        GatewayIntentBits.Guilds,
        GatewayIntentBits.GuildMessages,
        GatewayIntentBits.GuildMessageReactions,
        
    ]
});


client.on("messageCreate", (message) => {
  console.log("Received message:", message.content);
  if (message.content.toLowerCase() === 'ping') {
      console.log("Responding with 'pong'");
      message.author.send("Pong!");
  }

});

client.on("ready", () => {
    console.log(`Logged in as ${client.user.tag}`);
    client.channels.cache.forEach((channel) => {
        if (channel.type === 'text') {
            channel.send('Bot is online!');
        }
    });
});

client.login(process.env.token);

app.listen(3000, () => {
    console.log("Project is running!");
});

Welcome to the forums, @albertocrocrete!
Have you deployed your bot on a Reserved VM?

No i haven’t, can u explain it further if possible?, i assume u mean virtual machine?

No. To make sure that your discord bot works, you must deploy it on Replit as a Reserved VM, which can be as little as $6.40 a month. This will keep your bot online.