mirror of
https://github.com/kiranshila/Doplarr.git
synced 2026-03-31 06:23:48 -04:00
2.4 KiB
2.4 KiB
A Better Sonarr/Radarr Request Bot for Discord
Why not Requestrr
- Uses modern Discord slash commands and components, which provies a clean, performant UI on desktop and mobile
- Simple codebase, <1k lines of code versus almost 10k lines of C# and 7k lines of JS
- Simple configuration, no need to have a web configuration
- Powered by Clojure and Discljord, a markedly better language 😛
Setup
Discord
- Create a new Application in Discord
- Go to the Bot tab and add a new bot
- Copy out the token
- Go to OAuth2 and under "OAuth2 URL Generator", enable
applications.commands - Copy the resulting URL and use as the invite link to your server
Sonarr/Radarr
- Copy out your API keys from Settings -> General
Running with Docker
Simply run with
docker run \
-e SONARR_URL='http://localhost:8989' \
-e RADARR_URL='http://localhost:7878' \
-e SONARR_API='sonarr_api' \
-e RADARR_API='radarr_api' \
-e MAX_RESULTS=10 \
-e BOT_TOKEN='bot_token' \
--name doplarr ghcr.io/kiranshila/doplarr:main
Building and Running Locally
You need the Clojure CLI tools to build
- Clone directory
clj -T:build uberjar
Configuring
- Fill out
config.ednwith the requisite things
Setting up as a service (On Linux (Systemd))
- Create the file /etc/systemd/system/doplarr.service with the following
[Unit]
Description=Doplarr Daemon
After=syslog.target network.target
[Service]
User=root
Group=root
Type=simple
WorkingDirectory=/opt/Doplarr
ExecStart=/usr/bin/java -jar target/Doplarr.jar -Dconfig=config.edn
TimeoutStopSec=20
KillMode=process
Restart=always
[Install]
WantedBy=multi-user.target
- Customize the user, group, and working directory to the location of the jar
Then, as root
systemctl -q daemon-reloadsystemctl enable --now -q doplarr
