errors in my code

hey so im trying to make a streaming selfbot but ive been getting loads of errors whenever i try to add stuff like addbutton n stuff like that. heres my code and the error is attached
require('dotenv').config();
const express = require('express');
const app = express();
app.get('/', (req, res) => {
res.send('Self Bot Rich Presence working');
});
app.listen(process.env.PORT, () => {
console.log('Self Bot Rich Presence working on port ' + process.env.PORT);
});

const Discord = require('discord.js-selfbot-v13');
const client = new Discord.Client({
checkUpdate: false
});

client.on('ready', async () => {

const rpc = new Discord.RichPresence()
.setApplicationId('534203414247112723')
.setType('STREAMING')
.setURL(`https://twitch.tv/joinbmf`)
.setDetails(`narcissist`)
.setName(`narcissist`)
.setState(`/bmf on top`)
.setAssetsLargeImage(`https://i.pinimg.com/564x/4e/51/f9/4e51f9e6498e445315fc5633d00f9dc5.jpg`)
.setAssetsLargeText(`x_x`)
.setAssetsSmallImage(`https://i.pinimg.com/564x/87/67/45/876745a930a263812bbc6448437b445e.jpg`)
.setAssetsSmallText(`>_<`)
.addButton(`discord.gg/bmf`, `https://discord.gg/bmf`)
.addButton(`tiktok`, `tiktok.com/@watchhimbleed`);
client.user.setActivity(rpc.toJSON());

console.log(`${client.user.tag} is ready!`);
});

//Account Token
client.login(process.env.TOKEN);
require('dotenv').config();
const express = require('express');
const app = express();
app.get('/', (req, res) => {
res.send('Self Bot Rich Presence working');
});
app.listen(process.env.PORT, () => {
console.log('Self Bot Rich Presence working on port ' + process.env.PORT);
});

const Discord = require('discord.js-selfbot-v13');
const client = new Discord.Client({
checkUpdate: false
});

client.on('ready', async () => {

const rpc = new Discord.RichPresence()
.setApplicationId('534203414247112723')
.setType('STREAMING')
.setURL(`https://twitch.tv/joinbmf`)
.setDetails(`narcissist`)
.setName(`narcissist`)
.setState(`/bmf on top`)
.setAssetsLargeImage(`https://i.pinimg.com/564x/4e/51/f9/4e51f9e6498e445315fc5633d00f9dc5.jpg`)
.setAssetsLargeText(`x_x`)
.setAssetsSmallImage(`https://i.pinimg.com/564x/87/67/45/876745a930a263812bbc6448437b445e.jpg`)
.setAssetsSmallText(`>_<`)
.addButton(`discord.gg/bmf`, `https://discord.gg/bmf`)
.addButton(`tiktok`, `tiktok.com/@watchhimbleed`);
client.user.setActivity(rpc.toJSON());

console.log(`${client.user.tag} is ready!`);
});

//Account Token
client.login(process.env.TOKEN);
No description
3 Replies
d.js toolkit
d.js toolkit14mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by staff
treble/luna
treble/luna14mo ago
we do not support TOS violatons
obsessive
obsessiveOP14mo ago
bro
Want results from more Discord servers?
Add your server