Skip to content

Lebenoa/Enoact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Enoact Core

Discord Rich Presence client that can display anything if WebSocket client is implemented.
This give an ability to any web app to connect via WebSocket and send presence packet.

It can display up to 4 different activities with different app name (if you need more please open an issue)

image

API for developer(s)

For WebSocket (Prefer)
  1. Connect to http://127.0.0.1:5579/ws
  2. Send packet like below
{
   "action": "SET" | "CLEAR",
   "activity": { ... },
}

Example

For HTTP Endpoint
  • Set presence: POST to /api/set-presence | if app_id is null, it'll spawn a presence and app_id will be return

    {
       "activity": { ... },
       "app_id": null
    }

    Example

  • Clear presence: POST to /api/clear-presence | required app_id to be the body

    1246549832349

How to build

  1. Clone this repo

Important

Web UI is currently required to build final executable

Build Web UI

  1. Install node, bun or alternatives
  2. Install web UI dependencies
bun install
  1. Build using command below
bun run build

Build the executable

  1. Run the following
cargo b -r

This will produce 2 binaries: enoact and enoact-presence.
You can ignore enoact-presence entirely as it is just an internal tool for enoact so you only need to run enoact.
enoact rely on enoact-presence to display an activity so you will have to place them together or add enoact-presence to PATH.

About

Enoact: Show what you're doing to others!

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors