Skip to main content

Discord bot for Radarr/Sonarr integration

Project description

wi1-bot

A Discord bot to integrate Radarr & Sonarr, allowing commands like !addmovie and !downloads.

Usage

  1. Copy config.yaml.template to $XDG_CONFIG_HOME/wi1-bot/config.yaml and set the necessary values.
  2. pip install wi1-bot (or from source: pip install git+https://github.com/wthueb/wi1-bot.git)
  3. wi1-bot

Development

  1. git clone https://github.com/wthueb/wi1-bot.git
  2. cd wi1-bot/
  3. pip install -e .[dev]
  4. pre-commit install

Requires Python >=3.12.

TODO

  • fix basedpyright errors, avoiding ignore comments where possible
  • multiple transcode workers
    • main server instance (as part of the existing webhook server, rename to api?). core app wouldn't be running transcoder anymore
    • worker nodes that point at the main server instance and use REST calls to get jobs and update job statuses
      • separate docker image
      • configure transcoding settings for each profile on each instance
      • if job fails, retry once on every instance before error notification
  • figure out qsv codecs
    • also maybe software encoders?
  • maybe check languages and things on new downloads via webhook
  • notify on manual import required?
  • transcode avis
  • integration testing
  • use overseerr for search/requests
  • web dashboard? django i guess?
  • link discord user to overseerr user
  • ffmpeg filters for deinterlacing, scaling
  • have config.discord.users be a dict with 'quotas' and 'name' for *arr tags
  • Better pushover notifications
    • Failures for pretty much everything
    • Notifications for grabs/downloads of personal watchlist
  • Tag user who added movie when it's downloaded
    • Would replace Radarr/Sonarr's Discord webhooks
    • !notify <query> to also be tagged when a movie/show someone else added is downloaded
      • react to "added movie/show" instead of having to !notify
      • react to notification to stop notifications
      • if user tries to add movie that's already present, add them to list to notify
      • Would require a DB; don't use tags as those are to strictly track quotas
        • DB is useful for caching other information as well
  • Use Discord slash commands instead of normal text commands
    • This is difficult/impossible currently, can't have "conversation" with slash commands
  • Enforce quotas
  • !linktmdb
  • !movieinfo showing user/public ratings and other general info (runtime, cast, director)
    • use TMDB API to get movie metadata
    • if movie isn't on Radarr, react to message to add it?
    • Tautulli API (get_history) to show who has already seen the movie
  • User leaderboard
    • movies/shows added, Tautulli watch counts

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wi1_bot-3.2.0.tar.gz (493.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wi1_bot-3.2.0-py3-none-any.whl (35.3 kB view details)

Uploaded Python 3

File details

Details for the file wi1_bot-3.2.0.tar.gz.

File metadata

  • Download URL: wi1_bot-3.2.0.tar.gz
  • Upload date:
  • Size: 493.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for wi1_bot-3.2.0.tar.gz
Algorithm Hash digest
SHA256 31ff66c4415f3d340fd45bbe944094224f0d4907e0a4e0a2eaa2a34773cf4d4a
MD5 397c0e5aaf5347964e39816ddb70faec
BLAKE2b-256 159be71baa6017e349a5a74e9fce4afd3464b1a375de3c2112a51e0d2c7e348a

See more details on using hashes here.

File details

Details for the file wi1_bot-3.2.0-py3-none-any.whl.

File metadata

  • Download URL: wi1_bot-3.2.0-py3-none-any.whl
  • Upload date:
  • Size: 35.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for wi1_bot-3.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a068ea4b3378c2fedbc969ccf8b85817f5b6f0cca44f1d83b7ff6ec32d77e1cf
MD5 c8a88db17e9b93190af2ac598d4d13ae
BLAKE2b-256 5206edc7dffe02eedb7d45922e3045d88a7428ecf02093422a19ea365694d18c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page