This is a script that will update your rich presence based on your activity on Trakt.tv.
Note: This must be run on a machine that has the Discord desktop client open.
-
Install Node.js here
-
run
npm install
-
Create a Discord app here and name it
Trakt
-
Click "Enable Rich Presence" near the bottom of the app page
-
Upload assets from the
icons
folder, using the filenames as the asset names, and selecting the type based on the folder they are in (large/small) -
Click "Save Changes"
-
Create a Trakt app here
-
Give it a name and set the redirect uri to
urn:ietf:wg:oauth:2.0:oob
-
Set environment variables
DISCORD_CLIENT: Client ID from Discord app page
TRAKT_CLIENT: Client ID from Trakt app page
TRAKT_SECRET: Client Secret from Trakt app page
- run
npm start
- You will be prompted to activate the app on Trakt with a code.
Scrobble something to Trakt, and your discord presence will be updated while you are watching.