Skip to content

Commit

Permalink
Improvement: Add EliteBot profile link to rich presence (#3169)
Browse files Browse the repository at this point in the history
Co-authored-by: Chiss5618 <[email protected]>
  • Loading branch information
Chissl and Chissl authored Jan 7, 2025
1 parent 8f79ba7 commit 73d1688
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
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

0 comments on commit 73d1688

Please sign in to comment.