Skip to content

Instantly share code, notes, and snippets.

@SupertigerDev
Created February 24, 2023 22:25
Show Gist options
  • Save SupertigerDev/52a2ff814379579eb4441edf3da3ab7e to your computer and use it in GitHub Desktop.
Save SupertigerDev/52a2ff814379579eb4441edf3da3ab7e to your computer and use it in GitHub Desktop.
discordrpcgenerator Spotify RPC work with discord.js-selfbot-v13
client.on("ready", () => {
const presence = createSpotifyRPC(client)
.setAssetsLargeImage("spotify:f2ed07272dec9cfc3b6805e9c59eac3391a59bed")
.setAssetsSmallImage("spotify:f2ed07272dec9cfc3b6805e9c59eac3391a59bed")
.setDetails("RpcGenerator - Demo")
.setState("Rpc Generator")
client.user.setPresence(presence.toDiscord())
})
function createSpotifyRPC(client) {
client.ws.connection = {sessionID: client.sessionId}
const presence = rpcGenerator.createSpotifyRpc(client)
presence.toDiscord = () => ({activities: [presence.game]})
return presence
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment