Skip to content

Trying some rusty programming language, to make a rusty discord rpc

Notifications You must be signed in to change notification settings

IMXNOOBX/rusty-rpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🦀 Rusty RPC

Trying some rusty programming language, to make a rusty discord rpc. The main goal with this project is to learn Rust and get to know 🦀 Ferris and all his secrets.

🧶 What is this a Discord RPC

Discord RPC (a.k.a Discord Rich Presence) is a feature that allows you to display your current activity on Discord. It's a way to show what you are doing in a game or application. You can learn more here Discord RPC.

Banner

This project has been made easier thanks to the wrapper library discord-rpc (git)

🪁 How to use

To use this project, you do not need to install anything, just download the latest release from the releases page and run the executable.

Tip

You can also build it yourself, if go to for developers

🧩 Config

To customize your discord rich presence, you can modify the config.json file.

Note

It will prompt you to generate it once you start it To disable any field, leave it empty

{
    "client_id": "1164950312914800850", // Developer portal application id

    "state": "Try out Rusty RPC, a Rust client for Discord Rich Presence!", // The subtext
    "details": "Rusty RPC", // The main text
    "timestamp": true, // Show the time elapsed or not

    "images": {
        "large_animated": false, // If you want to show an animated image
        "large_animate_speed": 3000, // The speed of the animation, in milliseconds (not recommended to go below 3000 it causes rate limit issues)
        "large_animated_amount": 12, // The amount of frames in the animation
        "large_animated_img": "catgif", // The prefix of the image, the images should be named like this: catgif0, catgif1, catgif2, etc.

        "large_image": "catto", // The large image, if animated is off
        "large_text": "Im a cat!", // Image description
    
        "small_image": "ferris", // The small image (the one on the bottom right)
        "small_text": "Im a tiny crab!" // Small image description
    },

    "buttons": {
        "first": {
            "label": "Developer", // Button text
            "url": "https://noob.bio" // Button url to open when clicked
        },
        "second": {
            "label": "Repository", // Empty to disable
            "url": "https://github.com/IMXNOOBX/rusty-rpc" // Empty to disable
        }
    }
}

🚀 For Developers

Important

You first need to have Rust installed on your machine. You can install it from here.

To build the project from source, you can use the following commands:

  • Clone the repository
git clone https://github.com/IMXNOOBX/rusty-rpc
cd rusty-rpc
  • Run the project
cargo run
  • Build the project
cargo build 
cargo build --release

Important

You can star the repository by clicking ⭐ on the top right corner of this page.

🔖 License & Copyright

This project is licensed under CC BY-NC 4.0.

+ You are free to:
	• Share: Copy and redistribute the material in any medium or format.
	• Adapt: Remix, transform, and build upon the material.
+ Under the following terms:
	• Attribution: You must give appropriate credit, provide a link to original the source repository, and indicate if changes were made.
	• Non-Commercial: You may not use the material for commercial purposes.
- You are not allowed to:
	• Sell: This license forbids selling original or modified material for commercial purposes.
	• Sublicense: This license forbids sublicensing original or modified material.

©️ Copyright

The content of this project is ©️ by IMXNOOBX and the respective contributors. See the LICENSE.md file for details.

About

Trying some rusty programming language, to make a rusty discord rpc

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages