Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement: Add EliteBot profile link to rich presence #3169

Merged
merged 1 commit into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ public String toString() {
@ConfigEditorBoolean
public Property<Boolean> showSkyCryptButton = Property.of(true);

@Expose
@ConfigOption(name = "Show Button for EliteBot", desc = "Add a button to the RPC that opens your EliteBot profile.")
@ConfigEditorBoolean
public Property<Boolean> showEliteBotButton = Property.of(true);

public enum LineEntry implements HasLegacyId {
NOTHING("Nothing", 0),
LOCATION("Location", 1),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,15 @@ object DiscordRPCManager : IPCListener {
setStartTimestamp(startTimestamp)
setLargeImage(discordIconKey, location)

if (config.showEliteBotButton.get()) {
addButton(
RichPresenceButton(
"https://elitebot.dev/@${LorenzUtils.getPlayerName()}/${HypixelData.profileName}",
"Open EliteBot",
),
)
}

if (config.showSkyCryptButton.get()) {
addButton(
RichPresenceButton(
Expand Down
Loading