Skip to content

Rayrsn/Discord-RPC-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛠️ Discord RPC cli client

A Discord RPC cli client written purely in Rust

Status Badge

Features

  • Typical RPC Features

    • State
    • Details
    • Displaying large image and it's custom text
    • Displaying small image and it's custom text
    • Buttons
      • Can put 2 buttons
  • More Advanced Features

    • Setting custom times (Unix format)
      • Can set start time
      • Can set end time
    • Creating a party
      • Can set party size
      • Can set party ID
    • Creating a match
      • Can set match ID
      • Can set join ID
      • Can set spectate ID
  • Other Features

    • AFK RPC (Will show how long you've been idle for.)
    • Show the time from when the program was run.
    • Set a time for the program to exit after reaching it. (Countdown)
    • Disable colored output (Colors are enabled by default.)

Building

For installing on Arch you can use the AUR (discord-rpc-cli)

Simply run

Make sure you have rust installed

git clone https://github.com/Rayrsn/Discord-RPC-cli && cd Discord-RPC-cli && cargo b --release
  • The executable will be located in target/release/Discord-RPC-cli

Usage

The simplest way to use the program is as follows

./Discord-RPC-cli -c <Application ID goes here> 

You can also run the program with the -h argument to print out the help message

How do i get the client id and the other stuff?

  1. Go to Discord's Developer Portal.
  2. Make a New Application and name it whatever you want. (this is also the name of your RPC)

DevPortal

  1. Then head to the Rich Presence tab.

RichPresence

  1. Scroll down to the "Rich Presence Assets" section

  2. Here you can upload any image you want. (it has to be 512x512, there are many online tools that resize images for you) Also remember you can't rename the image once you hit the "Save Changes" button. (it has to be deleted and reuploaded)

Uploading

  1. Then head back to the "General Information" tab and copy the Application ID. (this is the same as Client ID)

AppID

Acknowledgments and FAQ

  • Why can't I click on my own button? You just can't. (Discord Limitation)

  • Parts of the readme uses the opensource-template by EmbarkStudios: opensource-template

Questions

If yall have any questions or just wanna talk, add me on Discord or use my username Rayr#6709 (this might change so it's better to just use the link)