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

Sharing to Discord #450

Closed
pascalo7 opened this issue Aug 15, 2017 · 25 comments
Closed

Sharing to Discord #450

pascalo7 opened this issue Aug 15, 2017 · 25 comments
Milestone

Comments

@pascalo7
Copy link

pascalo7 commented Aug 15, 2017

Would it be possible to have a new tab under sharing to allow a user to show what anime and episode they are watching in the playing status area(Game Activity)?

@gablou
Copy link

gablou commented Aug 25, 2017

You created the need for this feature on my side too.
Sadly seems discord is not too friendly to let you update the status message.
Still on the developer corner I found :
https://discordapp.com/developers/docs/topics/rich-presence
Rich Presence allows you to leverage the totally overhauled "Now Playing" section in a Discord user's profile to help people play your game together.
But
Rich Presence is currently in a private alpha phase. If you're interested in getting access, apply to our Gamebridge program and mention Rich Presence, and we'll review your application
I'm pessimistic regarding approval of non-gaming software application.
But still looking good API as you could even change the 'playing' part of the status:
state is the user's current context. This could be "In Game," "In Queue," "Looking to Play," or any other states you want to denote.

It's all I can say for now on this topic. I might have missed something.
I might also dig a little more latter on as I think it could be a nice feature.

@pascalo7
Copy link
Author

It seems like people are using rich presence to set what they are playing. (Post from reddit) and if people are doing it and not being told not to then it could be something that could be added to taiga if the devs feel like it

@erengy erengy changed the title [Request] Share what user is watching in Discord play status Sharing to Discord Sep 3, 2017
@Phokopi
Copy link

Phokopi commented Nov 10, 2017

https://twitter.com/discordapp/status/928712259945119744
https://discordapp.com/developers/docs/rich-presence/how-to
Discord just released Rich Presence for everyone. This can now be added to Taiga if anyone feel like it !

@Greydus
Copy link

Greydus commented Nov 14, 2017

Discord's game object now accept more types, just 2 new types, watching and listening to. More info on the game object and a thread on reddit

@gablou
Copy link

gablou commented Jan 9, 2018

I give a try with rich presence but for now I'm quite disappointed.
Here's the result :
image

For now seems you cannot use what @Greydus report back in this thread. (should be reserved for bot or self-bot, but self bot are discouraged by Discord).

Interesting issues to follow up:

I suppose some of the items could be achieved via RPC (notably setting status) but need more complex setup/study.

So for now I have a little something that work on top of the http sharing function of Taiga. With some hacks and manual configuration I suppose Someone could emulate final functionality. If people are interested let me know.

Lastly from the network view it seems that @reverie-lu started to have a look into integrating taiga with discord.

@shafschwd
Copy link

@gablou
how did u do it

@gablou
Copy link

gablou commented Feb 24, 2018

Hi,
I used the taiga http sharing with https:/gablou/taiga-richPresence-proxy. It's a small nodeJS server that will forward taiga http notification to discord API. I will try to write a tuto tomorrow how to use it and what can be setup.

@gablou
Copy link

gablou commented Feb 25, 2018

@0ANIMEFREAK0 I put in place a wiki were you should find some basic doc. Let me know if you struggle with some part (open an Issue ?) so I know where I should explain more in details.

@andyvorld
Copy link

discord taiga proof of concept

I managed to integrate the discord RPC api directly into the source code of taiga.

With a bit more playing around I think could manage to have the status update depending on the current anime being watched.

The only problem is that I am not too good with the proper compilation configuration so you still need to manually copy over a .dll file to the program file

@andyvorld
Copy link

Just compiled finished playing around with the discord integration,
capture

Download the portable version based on v1.3.0-Beta.2 here https:/andyvorld/taiga/releases/tag/v1.3.0-beta.2-Discord

@shafschwd
Copy link

screenshot_12
@andyvorld my anime name isnt showing up

@andyvorld
Copy link

andyvorld commented Mar 9, 2018

@0ANIMEFREAK0 do you remember the name of the anime you were watching?

I think i have a slight idea of what went wrong, I have changed the title name to be displayed in english. As discord's api doesnt support non ascii characters.

I have released a new build here https:/andyvorld/taiga/releases/tag/v1.3.0-beta.2-Discord.2

@shafschwd
Copy link

@andyvorld it was saiki k kusuo s2

@andyvorld
Copy link

@0ANIMEFREAK0, can you check if it works now with the newest build?

@shafschwd
Copy link

@andyvorld it isn't working

@pascalo7
Copy link
Author

@0ANIMEFREAK0 Can you please open this up as a bug on his project page.

@ovingiv
Copy link

ovingiv commented Mar 10, 2018

@andyvorld It works for me.
image

@erengy
Copy link
Owner

erengy commented Mar 14, 2018

The problem with Rich Presence is that it's designed for game developers. As some of you pointed out, it doesn't support different activity types, dynamic application names or images yet, so we're stuck with "Playing Taiga" and a generic icon. Not to mention that it requires using the Discord desktop client (i.e. it doesn't work if you open Discord in a regular web browser).

I was planning to wait until v1.4, hoping that Discord's API would improve by then. But there's quite an interest for this feature, and it seems most of you are okay with the limitations mentioned above. So I gave this a try, and was able to integrate discord-rpc into Taiga:

discord-playing

I used smallImageKey to display the active service (MyAnimeList, Kitsu or AniList). Let me know if you have any other suggestions.

I'll try to finish this up tomorrow and update the latest build for testing.

@erengy erengy added this to the v1.3 milestone Mar 14, 2018
@ifonefox
Copy link

I'm not sure if its a good idea to use include the Taiga avatar and the service. The large icon could cause the part of the shows name to be cut off. In addition, there's no way to know the Discord users's MAL/Kitsu/AniList account. Maybe there could be a small/large image toggle in Taiga's advanced settings?

Image and no image comparison
(The left side has a large image, but its just transparent)

In addition, it would be nice if there was an advanced setting to use our own Discord Application Client ID, since there's no dynamic name. This is a pretty niche feature request, so I can understand not wanting to add that complexity to Taiga.

@erengy
Copy link
Owner

erengy commented Mar 15, 2018

You may now test Discord integration by downloading the latest build. Note that you need to enable it from Settings → Sharing → Discord (make sure Tools → Enable auto sharing is checked too).

@wopian
Copy link
Contributor

wopian commented Mar 15, 2018

@ifonefox it displays your username on hover

@wiiaboo
Copy link
Contributor

wiiaboo commented Mar 15, 2018

It doesn't update automatically, needs you to explicitly share to Discord, and it doesn't disappear if there's nothing playing, just shows Taiga's window title.

Oh, right, I guess it uses the "list updates and automatic sharing" timer.

@erengy
Copy link
Owner

erengy commented Mar 19, 2018

Discord support is now merged into develop branch. It's going to be available in the next release.

@CyberiumShadow
Copy link

Just as a side note: the Rich Presence API should support different activity types already. As applications such as Spotify have it as Listening to Spotify as shown here
image

So it should be possible to have it state Streaming or Watching through the use of OP Codes through the websocket/IPC sockets for Discord.

Proof of this concept can be seen in a Discord Bot's status message where instead of the playing activity type. The watching activity type is used instead
image

@Kyrielight
Copy link

Kyrielight commented Apr 3, 2018

From what I understand, OP Codes / Gateway updates are currently only available for bot accounts. While it's definitely possible to 'self-bot' and update your activity type accordingly, Discord forbids it, as you can see here.

Rich Presence API doesn't support activity types yet, but if I recall correctly, it should be coming in a future update. (Spotify is a special exception, as they worked directly with Discord). Please correct me if I'm wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests