-
Notifications
You must be signed in to change notification settings - Fork 40
Sync Discord User with Ombi User #56
Comments
Something to keep in mind for this feature: Maybe we could sync users by adding their discord tag to the user preferences. We need find a way to sync discord with ombi users. |
Don't forget this: Mellow/src/api_handlers/ombi.js Line 100 in 4f4df71
|
I'm basically just a power user with little code experience but have you tried contacting Tidusjar, the ombi dev, for assistance? This feature would be so great! |
I know already how to do this but I'm currently working on another high priority bugs which need to be fixed first. |
Took a quick look at this. Part of the problem is that we currently are requesting in Ombi as the API key user, not as the actual Discord user. So the first change needed will be to either let Ombi accept a Ombi user ID when making a request or run a PUT request after the request POST where we set the requesting user. Then Discord notifications will work properly. |
you can request as a user by changing the UserName attribute in the header when requesting content. we would need to add a sync ombi command so the user id gets linked to the plex account. we will need to do some oauth2 trickery probably to get it properly synced and then it should work. |
Actually that's not necessary. Ombi has a "Discord" field for each user under notifications. If you add their ID it pings the user with the Discord webhook. All we need to do is check if the user who made the request has an account with that ID. Fortunately Ombi has an endpoint that returns this data. I'll make a PR for this shortly. |
So this would allow us to say something like [RequesterName} in the Ombi notification and it would retrieve the discord name#number that can mention them? |
@Alpha5k Get anywhere with that PR ever? If not, I can take a swing at it. |
Sync discord user with ombi user. Maybe create new user for each discord user who wants to sync up ?
The text was updated successfully, but these errors were encountered: