The most useless project ever...
This is a node project which randomly picks a video based on the categories it's provided and displays it on your discord status.
-
Install NodeJS and Git. To start off, you will need to download Git and NodeJS. This will be required to make the rpc actually work.
-
Install the forever package. After installing NodeJS and Git, you can install the forever package by opening up a terminal and running the following command
npm install -g forever
. Forever will be used to keep the rpc script running forever. -
Install the core dependencies. You can do this by opening up a terminal and running the following commands.
$ git clone https://github.com/photosensory/pornhub-discord-rpc.git $ cd discord-rpc-pornhub $ npm install $ npm install -D dotenv
-
Go to the Discord Developer Portal
-
Create an application. You can create an application in the Discord Developer Portal by clicking the
Create Application
button, which should be located around the top right of your screen.- I recommend naming the application
Pornhub Web
. - You also want to make a note your "CLIENT ID" under the OAuth2 Tab.
- I recommend naming the application
-
You will need to upload the PornHub logo called
ph_icon
under the rich presence assets (Must be 512x512px Minimum). You can click here to download the provided image. -
Rename
.env.example
to.env
and input your "CLIENT ID" you took note of in place of "client_id_here". -
Edit
config.js
via adding or removing search terms in the following format:module.exports = { "searchTerms": [ "Pussy", "Blowjob", "Sex", "Rimjob", "Milf" ] }
-
Now start the rpc script via
npm run start
and it should work.- You can stop the rpc script by running the following command:
npm run stop
- You can stop the rpc script by running the following command:
To start the RPC script:
$ npm run start
To stop the RPC script:
$ npm run stop