Created
February 24, 2023 22:25
-
-
Save SupertigerDev/52a2ff814379579eb4441edf3da3ab7e to your computer and use it in GitHub Desktop.
discordrpcgenerator Spotify RPC work with discord.js-selfbot-v13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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