The Discord bot to help you easily add movies/series to Radarr/Sonarr.
- Create a discord bot.
- Go to the Discord Developer Portal
- Click
New Application(top right) - (In the popup) Enter any name and click create
- You should now be in the applications dashboard, you can customize it now if you want (add avatar, description, etc)
- Under the
OAuth2tab (on the left) make note of your appsCLIENT ID. - Go to the
Bottab (on the left) and clickAdd Bot, in the page with your bot's details, make note of your botsTOKEN(clickReset Tokento show a new one if you didn't see your first one).
- Fill out the environment variables
- Download the .env.example file from the repo.
- Copy the
.env.examplefiles contents into a new file.envand fill out all the environment variables listed. All variables have a comment above them so you know what to set them as.
- Choose the way you want to setup the bot:
- Invite the bot to a server (an invite url is logged to console for you when slavarr starts).
- Optionally add notification support:
- In Sonarr and Radarr go to Settings > Connect > + (Add Notification) > Webhook.
- Set a Name for the connection
- Add the URL to Slavarrs listener (default:
http://127.0.0.1:3001) - Click
Saveand you are done, Slavarr will receive events and notify you of them!
- 🥳 Done! When slavarr starts, it will register the bots slash commands and you should be ready to use it!
- Download the latest docker-compose.yml file from the repo.
- Start the bot:
# Or use docker-compose depending on your configuration docker compose up -d
- Start the bot:
docker run -d --name=slavarr --env-file .env --restart unless-stopped ghcr.io/sbondco/slavarr:latest
- Download/clone the code from the repo.
- Build and register bot slash commands:
# Install all packages npm i # Build slavarr npm run build - Start the bot:
npm run start