-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from shayaantx/feature/matrix
Feature/matrix - Add matrix chat client support This PR contains many fixes/changes: Addition of matrix client support to botdarr, i.e., https://github.com/vector-im/element-web & https://github.com/matrix-org/synapse Removed cancel/lookup torrents commands (they were implemented partially early on - so they are buggy) All commands run in their own thread pool (10 threads) All api requests to radarr/sonarr/lidarr have timeouts of 5 seconds (which should be more than enough) Can blacklist content from showing up from apis, using new property "existing-item-paths-blacklist" Changed default command prefix from / to ! I changed above prefix because I keep finding inherent functionality with / in many of the chat clients Changed default notification time for downloads from 1 hour to 5 minute Matrix client details: The new client supports all the existing commands (for radarr, sonarr, lidarr) Its over HTTP only so make sure you don't use this specific impl over the internet (if there is a big need for https, let me know and I'll add it sooner than later) We use the preview url api to show images instead of relying on matrix client/servers to preview display the url for us. From my own testing, url previews by itself doesn't work well or consistently (for whatever reason). So we use the preview url api to get mxc urls instead (i.e., basically uploading the image to synapse and getting back a safe mxc url). This works on the mobile/desktop clients I've tried. I only tested against element web (and desktop) client variants. On ios and android The matrix client expects a valid room id in the config and will join it on start. We use the /sync api + long polling to get messages and process them as commands.
- Loading branch information
Showing
49 changed files
with
1,225 additions
and
811 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.