here is the code:
const Discord = require(‘discord.js’);
const client = new Discord.Client();
const http = require(‘http’);
const express = require(‘express’);
const app = express();
app.get("/", (request, response) => {
console.log(Date.now() + " Ping Received");
response.sendStatus(200);
});
app.listen(process.env.PORT);
setInterval(() => {
http.get(http://${process.env.PROJECT_DOMAIN}.glitch.me/
);
}, 280000);
client.on(‘ready’, () => {
console.log(‘Logged in as ${client.user.tag}!’);
client.user.setPresence({ activity: { name: ‘SKSC’ }, status: ‘online’ })
.then(console.log)
.catch(console.error);
})
client.on(“message”, async message => {
if (message.content === “scskgroupc1231”) {
embed:
var reaction = new Discord.MessageEmbed()
.setColor(’#2f3136’)
.setTitle(‘Rename to your real name then click the reaction below’)
>>>>>>let msgEmbed = await message.channel.send(reaction);
message.react(‘’)
}
});
client.on(“messageReactionAdd”, async (reaction, user) => {
if (reaction.message.partial) await reaction.message.fetch();
if (reaction.partial) await reaction.fetch();
if(user.bot) return;
if (!reaction.message.guild) return;
if (reaction.message.channel.id === ‘721496203136598017’) {
if (reaction.emoji.name === '👍') {
await reaction.message.guild.members.cache.get(user.id).roles.add(“733449100799770705”)
await reaction.message.guild.members.cache.get(user.id).roles.remove(“687506358454714385”)
}
}
})
client.login(’’);
“>>>>>>” is where the error is. I have tryied this on client and it worked.
screenshot is error.