Skip to content

Very simple Discord presence that allow you to add functional button to open an url.

License

Notifications You must be signed in to change notification settings

GawrrVR/DiscordJS-Presence-with-Button

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Presence Button

Simple JS code using discord-rpc to show presence with customisable buttons.

How it Works / Tutorial

  • 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 !

Config Help

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.

Tips

Click on your button don't open the link !

Discord can take 5~10 Minutes to properly propagate your uploaded image on her network. ⚠️ BEWARE OF NSFW IMAGES, DISCORD DOESN'T LIKE THIS AND YOU CAN GET YOUR ACCOUNT BANNED EASILY & QUICKLY

Special Character doesn't work on button text !

About

Very simple Discord presence that allow you to add functional button to open an url.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •