mirror of
https://github.com/0xGingi/kavita-discord-reader.git
synced 2026-09-21 11:44:22 -04:00
No description
- JavaScript 99.7%
- Dockerfile 0.3%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .gitignore | ||
| config-example.json | ||
| docker-compose.yml | ||
| Dockerfile | ||
| index.js | ||
| package-lock.json | ||
| package.json | ||
| readme.md | ||
Discord Kavita Reader
A Discord bot that integrates with your Kavita server, allowing you to browse and read content directly within Discord.
Features
- Search your Kavita library
- Browse and read PDF, EPUB, and CBZ files
- Automatically move to the next chapter
- View library information
ToDo
- Extract Images from epub files
- Add progress sync
- Improve PDF support
Prerequisites
- Node.js or docker
- Discord Bot Token
- A Kavita server
- Kavita OPDS URL
Setup
Using Docker
-
Create a
config.jsonfile from theconfig-example.jsonfile. -
Run the Docker container:
docker run -d --name kavita-discord-reader -v $(pwd)/config.json:/app/config.json 0xgingi/kavita-discord-reader:latest
Using Docker Compose
-
Clone this repository:
git clone https://github.com/0xgingi/kavita-discord-reader.git cd kavita-discord-reader -
Create a
config.jsonfrom theconfig-example.jsonfile. -
Run with Docker Compose:
docker-compose up -d
Using Node.js
-
Clone this repository:
git clone https://github.com/0xgingi/kavita-discord-reader.git cd kavita-discord-reader -
Install dependencies:
npm install -
Create a
config.jsonfile in the project root with the following structure:{ "discord": { "token": "YOUR_DISCORD_BOT_TOKEN", "clientId": "YOUR_DISCORD_CLIENT_ID" }, "kavita": { "baseUrl": "https://your-kavita-server.com", "opdsUrl": "https://your-kavita-server.com/api/opds/YOUR_API_KEY" } } -
Start the bot:
node index.js
Commands
The bot provides the following slash commands:
/kavita-libraries- Lists all available libraries/kavita-search [query]- Searches for series by name/kavita-read [series_id] [chapter_id]- Reads a specific chapter by ID