Simple JS code using discord-rpc to show presence with customisable buttons.
- First, you need to have NodeJS installed | https://nodejs.org/
- Download/Fork the Repository.
- Configure the presence in the config.json file. Explanation of the file is below if you're not familliar with this.
- Open a command-prompt in the script folder. simply click on the navbar on top of the folder, type "cmd" and enter.
- Enter the command "node index.js" and you're good !
All of the config.json parameters are here.
- app_id | Your Application ID. You can find this at https://discord.com/developers/applications
- line1 | The second line of your presence. First Line is the title of the application you've made at https://discord.com/developers/applications
- line2 | The third line of your presence.
- txt_si | Text when you hover your cursor over the Small Image of the presence.
- txt_li | Same as txt_si but for the Large Image text.
- l_img | Image Name of the Large Image. You need to upload it on your application : https://discord.com/developers/applications Rich Presence > Art Assets.
- s_img | Same as l_img but for the Small Image.
- button_name1 | Text on the 1st button.
- button_name1 | Same as above but for the second button.
- button_url2 | Url to open when you click on the first button.
- button_url2 | Same as above but for the second button.
Click on your button don't open the link !
Discord can take 5~10 Minutes to properly propagate your uploaded image on her network.
Special Character doesn't work on button text !