xyrioc
DIAdiscord.js - Imagine an app
•Created by xyrioc on 8/8/2023 in #djs-questions
halp
first 15 lines:
const express = require("express");
const app = express();
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"]});
intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES],
error code: /home/runner/bot-project/index.js:16
const triggerWords = ['ssa', 'supreme star amulet', 'green amulet'];
^^^^^
SyntaxError: Unexpected token 'const'
5 replies