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.4.0.tar.gz (494.4 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.4.0-py3-none-any.whl (35.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wi1_bot-3.4.0.tar.gz
  • Upload date:
  • Size: 494.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","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.4.0.tar.gz
Algorithm Hash digest
SHA256 e47eb1e2554c4ef7eb2b0241f3a950ae8a709c122da8498104787cd365be4a1d
MD5 cd2b00995f9025e9a3373240efdbc9e9
BLAKE2b-256 6057cd3e090ad6dcfd5814b16058bdd0c1ec67252f69678d6bc91ab923327f4a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wi1_bot-3.4.0-py3-none-any.whl
  • Upload date:
  • Size: 35.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4e1d65d4539d60509aff799943cb547a774246e32b099d97cdca8282912aec63
MD5 267eb466d25dbabf90389be644a82ad2
BLAKE2b-256 1054116c2743e3ac640bd5161d7be8d6120179b09a7fa5bb65226fd473e3aed5

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