A code that allows you to get custom spotify rich presence

Overview

Spotifycord

A code that allows you to get custom spotify rich presence!


The index.js is the main file. server.js prevents your repl from going to sleep. (If you have a replit hacker plan, then you can delete this file and paste this code inside the index.js file :


{ rpcGenerator.getRpcImage(CLIENT_ID, IMAGE) .then(image => { let presence = rpcGenerator.createSpotifyRpc(client) .setApplicationId(CLIENT_ID) .setAssetsLargeImage(image.id) .setDetails(SONG) .setState(ARTIST) client.user.setPresence(presence.toDiscord()) }).catch(console.error) console.log(`${client.user.username} Successfully Logged in!`) }) client.login(TOKEN);">
const dotenv = require('dotenv');
const TOKEN = (process.env.TOKEN);
const { Client } = require('discord.js-selfbot-v11')
let rpcGenerator = require("discordrpcgenerator")
const client = new Client();

let CLIENT_ID = "CLIENT_ID"
let IMAGE = "IMAGE_NAME"
let SONG = "SONG_NAME"
let ARTIST = "ARTIST"

client.on("ready", () => {
    rpcGenerator.getRpcImage(CLIENT_ID, IMAGE)
    .then(image => {
    let presence = rpcGenerator.createSpotifyRpc(client)
    .setApplicationId(CLIENT_ID)
    .setAssetsLargeImage(image.id)
    .setDetails(SONG)
    .setState(ARTIST)
    client.user.setPresence(presence.toDiscord())
    }).catch(console.error)
  console.log(`${client.user.username} Successfully Logged in!`)
})

client.login(TOKEN);

This Code is from this tutorial. If you have any doubts regarding this, feel free to contact me.

DO NOT GIVE YOUR TOKEN TO OTHERS!

Use uptimerobot.com to make your repl online 24/7.


Feel free to Star the Repository if this helped you! ;)


Spotifycord © 2022 by SealedSaucer is licensed under Attribution 4.0 International

You might also like...

Creates a URL slug as you type a page title (like Django slugify())

jQuery Slugify Update Please have a look at Madflow's implementation of jQuery Slugify. It's a more mature and active project. In theory, you should b

Jun 28, 2022

autoNumeric is a standalone library that provides live as-you-type formatting for international numbers and currencies.

autoNumeric is a standalone library that provides live as-you-type formatting for international numbers and currencies.

What is autoNumeric? autoNumeric is a standalone Javascript library that provides live as-you-type formatting for international numbers and currencies

Dec 16, 2022

This is a facebook messenger clone.You can comminicate to other at realtime

This is a facebook messenger clone.You can comminicate to other at realtime

🟡 facebook-messenger This is a facebook messenger clone.You can comminicate to other at realtime 💬 ⚡ LIVE To check out the live demo of this app ABO

Sep 11, 2022

NatsirtMC is a lightweight app allowing you to connect to any Minecraft server without having Minecraft open

NatsirtMC the only way to grind without grinding NatsirtMC is a lightweight app allowing you to connect to any Minecraft server without having Minecra

Dec 26, 2022

Garçon is a slack bot designed for recommending restaurants and order lunches for you from buy.am delivery service.

Garçon is a slack bot designed for recommending restaurants and order lunches for you from buy.am delivery service.

Garçon What is it about ? Garçon is a slack bot designed for recommending restaurants and order lunches for you from buy.am delivery service.

Jul 23, 2022

Update your discord activity status with a rich presence from Figma.

Update your discord activity status with a rich presence from Figma.

Figma Discord Presence Update your discord activity status with a rich presence from Figma. Supports Windows and MacOS Features Shows what you're work

Jan 2, 2023

📗 A simple electron app to connect with Platzi and add a discord rich presence

📗 A simple electron app to connect with Platzi and add a discord rich presence

Platzi - Discord Rich Presence RPC Electron Requirements Nodejs you can download the latest version - here clone the repository like this - git clon

Oct 31, 2022

Add Discord rich presence for Apple Music!

Add Discord rich presence for Apple Music!

Apple Music Presence Connect Apple music with Discord! We all have friends who have Spotify (gross), but it shows what they are listening to in Discor

Jan 1, 2023

Discord Rich Presence made with ♥ by Ahad#3257

Discord Rich Presence made with ♥ by Ahad#3257

Discord-RPC Discord Rich Presence made with ♥ by Ahad#3257 How To Use? It's very simple just follow the steps written below or see tutorial on YouTube

Dec 24, 2022

Um cantinho dessa org destinado a elaboração de apps/aplicações de Custom Presence.

Um cantinho dessa org destinado a elaboração de apps/aplicações de Custom Presence.

Discord Server Rich Presence - Coders Community Um cantinho dessa org destinado a elaboração de apps/aplicações de Custom Presence. Para executar o no

Dec 12, 2022

Spotify 2.0 com NextJS 12 - MIddleware, TailwindCSS, Spotify API, NextAuth, Recoil

Spotify 2.0 com NextJS 12 - MIddleware, TailwindCSS, Spotify API, NextAuth, Recoil

Spotify Clone A spotify clone made with NextJS 12, TailwindCSS, NextAuth, Spotify API, Recoil Lessons Learned Setting up NextJS with Tailwind. NextAut

Mar 14, 2022

Spotify clone using Next.js, Spotify API, Tailwind, NextAuth, Recoil

Next.js + Tailwind CSS Example This example shows how to use Tailwind CSS (v2.2) with Next.js. It follows the steps outlined in the official Tailwind

Dec 25, 2021

spotify.ts is an wrapper built around Spotify's Web API

spotify.ts About spotify.ts is an wrapper built around Spotify's Web API. Features Fast Object Oriented Typescript, ESM, CJS support Easy to Use Insta

Nov 17, 2022

example app that creates a new player in Spotify Connect to play music from in the browse using Spotify Web Playback SDK.

Spotify Web Playback SDK Demo Requirements User must have Spotify Premium, DRM & EME supported and JavaScript enabled Web Browser. License Copyright 2

Jul 20, 2022

Toaster is a Pure Javascript plugin for displaying toast notifications. It comes with different options e.g custom text or HTML message, duration, custom class, toggle close button, position, custom close icon and backgorund color.

Pure Javascript Toaster Requires Nothing Demo Toaster is a Pure Javascript plugin for displaying toast notifications. It comes with different options

Jun 21, 2022

Add to your GitHub readme a badge that shows your Discord username and presence (online/idle/do not disturb/offline)!

Discord Profile Markdown badge Add to your GitHub readme a badge that shows your Discord username and presence! Set up Join the Discord server (requir

Dec 30, 2022

Add multiplayer presence (live cursors/avatars) to your react application using yjs and hooks

y-presence Easy way to add presence (live cursors/avatars) to any react application using react hooks. Installation yarn add y-presence # or npm i y-p

Dec 29, 2022

💬 cursor chat à la Figma for digital co-existing + presence

💬 cursor chat à la Figma for digital co-existing + presence

cursor-chat 💬 lightweight (31.8kB) cursor chat à la Figma for digital co-existing + presence As a warning, this library is for experimental purposes

Jan 2, 2023

A table component for your Mantine data-rich applications, supporting asynchronous data loading, column sorting, custom cell data rendering, row context menus, dark theme, and more.

A table component for your Mantine data-rich applications, supporting asynchronous data loading, column sorting, custom cell data rendering, row context menus, dark theme, and more.

Mantine DataTable A "dark-theme aware" table component for your Mantine UI data-rich applications, featuring asynchronous data loading support, pagina

Jan 4, 2023
Translate text to morse code, but the morse code is emojis

morsemoji Convert text to morse code... with emojis! Check it out! This project was built with React, Vite, Emoji Mart, Nord, and react-copy-to-clipbo

Cassidy Williams 48 Jul 21, 2022
Compiler for parsing custom HTML 🤖

RiN Compiler Compiler for parsing custom HTML ?? Installation Features Usage Basic compilation Advanced compiling Tags Widgets App Widgets Functional

Chalana Nethsara 4 Apr 3, 2022
Custom HTML elements for generic components (dropdown, modal...) without style.

Headless elements The goal of this project is to create a library of Custom Elements to stop reinventing the wheel (starting by reinventing the wheel

Jonathan 21 Sep 17, 2022
A user script for the web that allows you to view and edit files in the Godot Web Editor

Godot-Web-File-Manager This is a user script for the web that allows you to view and edit files in the Godot Web Editor. You can even use this to enab

Roujel Williams 4 Jan 31, 2022
A simple server application that allows you to perform Wake-on-LAN remotely with a web interface

WoL Helper A simple server application that allows you to perform Wake-on-LAN remotely with a web interface. Usage Install: npm install -g wol-helper

Hongbo 5 Jul 27, 2022
Travel Lovers - an application that allows a travel enthusiast to create an account to log past, upcoming, and bucket-list trips

Travel Lovers Table of Contents Description Tools Used Installation Instructions Usage License Tests Questions Description Travel Lovers is an applica

Nicholas Nolen 5 Aug 31, 2022
Math Magician is a single Page App that allows users to perform simple math calculations

Math Magician is a single Page App that allows users to perform simple math calculations

levy_ukwishaka 11 Apr 9, 2022
API routes are great for APIs, but for small projects where you have to access server data or hide application logic, you can just call a server function from the client.

API routes are great for APIs, but for small projects where you have to access server data or hide application logic, you can just call a server function from the client.

null 3 Mar 6, 2022
Defines the communication layer between mobile native(iOS/Android) and webview using JSON Schema and automatically generates SDK code

Defines the communication layer between mobile native(iOS/Android) and webview using JSON Schema and automatically generates SDK code.

당근마켓 31 Dec 8, 2022
Bot managing the Devos Code Discord server

Bot managing the Devos Code Discord server

Pierre-Alexis 8 Dec 17, 2022