Skip to content
This repository has been archived by the owner on Dec 24, 2022. It is now read-only.

Set a Discord rich presence from your terminal or script!

Notifications You must be signed in to change notification settings

Pigpog/discord-rich-presence-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Discord Rich Presence CLI

Set your Discord Rich Presence from the command line or script!

Adapted from the send-presence program found in https://github.com/discordapp/discord-rpc/

Description

This program can be used to set your Discord Rich Presence by inputting each Rich Presence attribute into stdin. It can be used as a simple, lightweight, cross-platform and cross-language shim between any program and Discord's Rich Presence API.

This repository was made specifically for use in vlc-discord-rpc, so if you are using this for your own purposes I would suggest forking. Things will change without notice on this repository.

Usage

NOTE: This documentation assumes that you have a basic understanding of how Discord Rich Presence works.

The program will prompt you through each of the attributes of a Rich Presence. Here is the order in which the data should be entered:

  1. APPLICATION ID (ONLY ONCE)
  2. Details
  3. State
  4. Large Image Key
  5. Small Image Key
  6. Start timestamp (0 for none)
  7. End timestamp (0 for none)

As soon as the end timestamp is entered, your rich presence is updated, and the input process begins again.

Leaving a prompt blank will reset the input loop, prompting for Details again. Leaving the Details prompt blank will clear the presence.

Compiling

Linux

  1. Clone this repository:
git clone https://github.com/Pigpog/discord-rich-presence-cli.git
  1. Download and extract the latest release of Discord-RPC
  2. Copy the files from linux-dynamic/lib to /usr/lib, and the files from linux-dynamic/include to /usr/include
  3. Run the following commands from this project's root directory:
sudo ldconfig
cmake .
make

You should now have a binary file named "send-presence". Run it with ./send-presence, and it should start asking you questions (see Usage).

About

Set a Discord rich presence from your terminal or script!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published