Code Monkey home page Code Monkey logo

discordrpc's Introduction

Discord Rich Presence

For Players

Read the about.md for more info

For Developers

DiscordRPC gives mod developers an API that's a simple bridge to Discord's API.

void gdrpc::GDRPC::initDiscordRP()

This function initializes the RPC. This should not be called by an external mod as this mod already does so for you.

void gdrpc::GDRPC::updateDiscordRP(std::string details, std::string state, std::string smallImageKey, std::string smallImageText, bool useTime, bool shouldResetTime, std::string largeImage)

This massive jumble of spaghetti is what you're going to be using to update the Rich Presence. Every argument after details is optional.

argument name argument description
details Text right below the game name (Geometry Dash)
state Additional information below the details
smallImageKey The key (name) for the small image
smallImageText Text that appears when hovering over the small image
useTime Whether to show the time since the last time reset
shouldResetTime Whether to reset the time
largeImage The key (name) for the large image (typically left as gd_large)

discordrpc's People

Contributors

coopeeo avatar netheriteminer avatar techstudent10 avatar uproxide avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

discordrpc's Issues

weekly broken

the weekly doesnt work i reinstalled the plugin many times
image

Linux is not supported

This is more a feature request rather than an issue to support Unix operating systems. I've been expecting this mod to work on Arch but nothing comes up on my Discord profile activity... well until I saw in the README markdown file that this mod only works for Windows.

Please consider supporting unix systems.

disable rich presence after gd is in background for some time

since gd provides an easy way to tell if the game is currently in the foreground or background (by binding applicationWillEnterForeground and applicationDidEnterBackground), it would be nice to have an option to disable rich presence after being in the background for a customizable amount of time

sometimes i accidentally leave gd open overnight and my friends make fun of me for playing geometry dash at like 4 in the morning ๐Ÿ’”

On Mac, the new 2.0.6 update makes "best percent" not auto-update even though it worked fine in 2.0.4

I understand that Mac is usually ignored since not many people use it but i THINK this should be easy to fix and is just an oversight, since it worked completely fine before. Basically on 2.0.4 the displayed percent would automatically update once a new score was achieved as expected, but in 2.0.6 it doesn't update until you leave and reenter the level. I attached a video showing the working 2.0.4 behavior and bugged 2.0.6 behavior.

PercentBug1.mp4

rich presence has some bugs

---when you open a level at the menu it already starts the level in the RPC before actually playing the level, when playing the level the elapsed time disappeared as well too.---

if u can also add an indication if its a platformer with a star or a moon that would be awesome for the levels pls maybe more variety with levels like daily level. weekly level. gaunlet level, and if level is rated or not

[suggestion] Total Editor Time

When in an editor, the time elapsed should track the total amount of time spent in the editor for a level.

image
image
they don't match but it would be so awesome .. it would be so cool

daily not showing even though stated in update

bug: in the update it said daily level was added but it does not work, another issue is that after playing a level you have go back all the way to main menu start to see browsing menus when it should say browsing menus or creator tab after you exit viewing the level

image

image
image

:future request --i also see that there were future plans to adding more variety like weekly, map packs or even lists and im glad you are seeing these ideas already! also btw robtop stated that all main level demons are easy demons not hard as shown in game but its up to u to decide what face u want. is there any plans for featured, epic, legendary, mythic rings for the icons?

[suggestion] Practice Mode Differentiation

The status doesn't show anything different between normal mode and practice mode it should do that IMO (just replacing "Playing a level" with "Practicing a level is enough to me"

Discord RPC not working after last patch

Discord RPC is not working anymore since yesterday Discord update.
The activity doesn't show at all, until yesterday it was fine.
Is it just me or it doesn't work anymore for anyone due to the new Discord patch? I believe the mod needs to be update.

Discord version: stable 292725 (485a03a) Host 1.0.9147 x64 (47834) Windows 11 64-bit (10.0.22631)

Incorrect Difficulty for rated levels with differing star count

For any rated level, the mod will determine the difficulty to show in the RPC with the star count. This causes an issue with a few levels, namely the main levels (with every level that's 10 stars or greater just being NA) (it also just leaves the creator section blank)
image
image
image

As well as Luster by eopc (which is easy rated)
image

This no star auto level also has an incorrect difficulty idk why
image

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.