why isnt the command not working

const { Client, Events, GatewayIntentBits } = require('discord.js');
const { token } = "MTE4MTcyMDE2MzYyNDY4NTU4OA.GGJWB-.jDve_yeVH5mxEKITIbwhkoBglccWMOAdKWcvTw"

const client = new Client({ intents: [GatewayIntentBits.Guilds] });

prefix = "."
client.on("message", message => {
 if (message.content.startsWith(prefix + "ping")) {
    console.log("2349")
    message.channel.send('Pong! :Pingsock:');
  }
});

client.once(Events.ClientReady, readyClient => {
    console.log(`Ready! Logged in as ${readyClient.user.tag}`);
});
console.log("works");


client.login("MTE4MTcyMDE2MzYyNDY4NTU4OA.GGJWB-.jDve_yeVH5mxEKITIbwhkoBglccWMOAdKWcvTw");
Was this page helpful?