Giter Club home page Giter Club logo

dcustomrpc-v2's Introduction

DCustomRPC: The Rewrite (the second part)!

DCustomRPC is a custom rich presence client that you (you right there, yes you) can customize. You may remember the two Python versions of this, but this is the rewite (of the rewrite) in Rust! Now you don't have to worry about installing dependencies (rust > python)!

Downloads

Linux

Windows

No MacOS downloads. You must build it manually.

Setup

  1. Run the executable once. This will create a new file named config.json.
  2. Next go to Discord Developers (https://discord.com/developers/applications/) and sign in.
  3. From here, click the "New App" button and enter a "App Name". This will show as what you are playing. "App Description" and "App Icon" do not matter for rich presence.
  4. After you have done this, you can copy the "Client ID" (under "App Details") and replace the client_id already in the config file.
  5. You can set up the config as you desire here.

Discord Prerequisites

Please make sure that game statuses are turned on:

Game Toggle

Config Details

VERY IMPORTANT

  • Make sure any values are wrapped in quotes (like "key": "value").
  • If you're not using a value, just get rid of it, don't set it to a empty string.
  • large_image must be set for small_image to show up.
  • You can only have two buttons per game.
  • You can have unlimited games, but the more games you add, the longer it'll take to cycle through them all.

General Config

client_id: Your Discord application ID.

change_duration: How often (in seconds) your game should switch. Must be >0 and <255. Strongly recommended to be >5 to prevent Discord rate limits.

game_list: A list of games to rotate through.

game_list keys

details: Line 1 of your status.

state: Line 2 of your status.

large_image: The large image to display. Must correspond with one of the images uploaded to the Discord Developer Portal.

large_text: The tooltip to display when hovering over the large image.

small_image: The small image to display. Must correspond with one of the images uploaded to the Discord Developer Portal.

small_text: The tooltip to display when hovering over the small image.

buttons: List of buttons to display. Max of 2.

buttons keys

title: The text to show on the button.

url: The URL to send users to when they click on the button.

FAQ

  • A window pops up then closes instantly!
    • This probably means the program panicked.
    • No matter what OS you're on, you should have gotten output that looks something like thread 'main' panicked at 'something something', src/main.rs:0:0
      • thread 'main' panicked at 'failed to load config: make sure it's formatted properly: Error("something", line: 0, column: 0), src/config.rs:68:10'
        • This means you messed up your config. Make sure you've done it properly (that means you've wrapped all strings in quotes) and that it's actually valid. If you're sure it's valid, run it through a JSON checker. If the JSON checker shows it as valid, then there's a bug somewhere, report it to me.
      • thread 'main' panicked at 'this shouldn't've happened: report it in the support server and include this backtrace'
        • There's a bug somewhere in the code. Rerun the command, but put RUST_BACKTRACE=full before the command, and if you still get that error, copy and paste all of it and report it to me in the support server.
      • Some other error
        • We haven't documented it yet, so report it in the support server.
  • I got some sort of error about executable format error?
    • You're probably on a 32-bit OS, which isn't supported. Switch to a 64-bit OS. If you are on a 64-bit OS, your CPU probably doesn't support the required instructions. Get a new computer. Any CPU that doesn't support the required instructions is really old.

Building from Source

Dependencies

cargo must be installed on your system. To install it, head to https://rustup.rs and follow the steps. You can use the default settings for everything, as DCustomRPC does not use nightly features.

Building

git clone https://github.com/tazz4843/DCustomRPC-v2
cargo build --release

The executable is located in target/release/.

Useful Links

Rust

Repo Download: Stable

Repo Download: Beta

Support Server

dcustomrpc-v2's People

Contributors

craftzman7 avatar hydrostaticcog avatar tazz4843 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.