opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat(Discord): add rich presence support

Open enchantednatures opened this issue 6 months ago • 6 comments

initial effort on getting rich presence working. I haven't been able to make the share link show up. I'll also need a Discord bot id to plug in to use as default as well as a few images #https://github.com/sst/opencode/issues/406

enchantednatures avatar Jun 26 '25 15:06 enchantednatures

Some notes here:

this is using @xhayper/discord-rpc rather than the discordjs/rpc library, as I could not get the later to connect. I was mostly interested in prototyping it out to see if it would work, this would probably require a custom rpc implementation, other than just drop in a library

enchantednatures avatar Jun 26 '25 17:06 enchantednatures

Screenshot 2025-07-01 at 11 09 42 PM Screenshot 2025-07-01 at 11 15 44 PM

Unfortunately, using join secrets require a launch command and setting the share url only works for YouTube and Twitch urls.

enchantednatures avatar Jul 02 '25 06:07 enchantednatures

hey @enchantednatures curious, where is this at?

adamdotdevin avatar Jul 09 '25 13:07 adamdotdevin

hey @enchantednatures curious, where is this at?

I should have some time this week to update it.

Unfortunately, I could not get the /share command to create a join link which was the feature I was most excited for. However, I was able to get it to show the model in use and how long the opencode session had been running.

enchantednatures avatar Aug 02 '25 18:08 enchantednatures

Hey!

What's the progress with this PR? Would love to use it.

Edit: Yeah the age of the PR created a few conflicts :/

mufarodev avatar Nov 19 '25 22:11 mufarodev

any updates on this?

Microck avatar Dec 18 '25 21:12 Microck