im still a bit new to javascript, i started by following a tutorial i found on youtube, and that didnt seem to work, dug a bit deeper and a few more errors later, it still doesnt work. my code:
const express = require("express");
const app = express();
const prefix = require('discord-prefix');
prefix.setPrefix('b.');
app.listen(3000, () => {
console.log("Project is running!");
})
app.get("/", (req, res) => {
res.send("Hello World!");
})
const Discord = require("discord.js");
const client = new Discord.Client({intents: ["GUILDS", "GUILD_MESSAGES"]});
client.on("messageCreate", message => {
if (!message.content.startsWith(prefix)) return;
if(message.content === "help") {
message.channel.send("nah");
}
})
client.login(process.env.token)
i can confirm that the token is correct, so i dont think the issue stems from there.