Package Exports
- discord.js-selfbot-rpc
- discord.js-selfbot-rpc/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (discord.js-selfbot-rpc) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
discord.js-selfbot-rpc
A simple way to create a Discord Rich Presence for selfbot using discord.js-selfbot-v13 library
Installation
npm install discord.js-selfbot-rpc
Example (Rich Presence
)
Simple:
const { Client } = require('discord.js-selfbot-v13');
const client = new Client();
const { RichPresence } = require('discord-rpc-builder');
client.on('ready', () => {
const presence = new RichPresence()
.setStatus('dnd') // Must be one of (online, idle, dnd) default is online
.setName('Discord')
.setTimestamp();
client.user.setPresence(presence.toData());
console.log('Rich Presence has running...');
console.log(`Login as ${client.user.tag}`);
});
client.login('token');
With customization + image:
const { Client } = require('discord.js-selfbot-v13');
const client = new Client();
const { RichPresence, Util } = require('discord-rpc-builder');
// Using async / await to perform util get application assets
client.on('ready', async() => {
const applicationId = '984373297644961894'; // Your Application ID
const chromeImage = await Util.getAssets(applicationId, 'chrome'); // Get chrome image from application assets
const googleImage = await Util.getAssets(applicationId, 'google'); // Get google image from application assets
const presence = new RichPresence()
.setStatus('dnd') // Must be one of (online, idle, dnd) default is online
.setType('PLAYING') // Must be one of (PLAYING, STREAMING, LISTENING, WATCHING) default is PLAYING
.setApplicationId(applicationId)
.setName('Chrome')
.setDetails('View Homepage')
.setState('Searching anime...')
.setAssetsLargeImage(chromeImage.id)
.setAssetsLargeText('Chrome')
.setAssetsSmallImage(googleImage.id)
.setAssetsSmallText('Google')
.setTimestamp();
client.user.setPresence(presence.toData());
console.log('Rich Presence has running...');
console.log(`Login as ${client.user.tag}`);
});
client.login('token');
Example (Custom Status
)
Simple:
const { Client } = require('discord.js-selfbot-v13');
const client = new Client();
const { CustomStatus } = require('discord-rpc-builder');
client.on('ready', () => {
const customStatus = new CustomStatus()
.setStatus('dnd') // Must be one of (online, idle, dnd) default is online
.setState('Powered by discord-rpc-builder');
client.user.setPresence(customStatus.toData());
console.log('Rich Presence has running...');
console.log(`Login as ${client.user.tag}`);
});
client.login('token');
With custom emoji:
Important! Using discord custom emoji currently may not be supported yet, I will added in the next version. (but only applies to nitro users)
const { Client } = require('discord.js-selfbot-v13');
const client = new Client();
const { CustomStatus } = require('discord-rpc-builder');
client.on('ready', () => {
const customStatus = new CustomStatus()
.setStatus('dnd') // Must be one of (online, idle, dnd) default is online
.setState('Powered by discord-rpc-builder')
.setEmoji('🔥');
client.user.setPresence(customStatus.toData());
console.log('Rich Presence has running...');
console.log(`Login as ${client.user.tag}`);
});
client.login('token');