Nazurin

Documentation | 中文文档
小さな小さな賢将, a Telegram bot that helps you collect ACG illustrations from various sites.
Architecture

Features
- View/Download artwork from various sites
- Add images to your collection via Telegram
- Store your collection in Telegram channels
- Store images on multiple types of storage
- Store image metadata in multiple types of database
Supported Sites
Supported Databases
You can also implement your own database driver by creating a file under database folder, and set this option to the name of driver class.
Supported Storage
Configuration
For more information, see Documentation.
Deploy
For more deploy options, checkout Documentation.
Manual
- Install uv
- Create virtual environment and install dependencies:
uv sync
- Set the required environment variables or place them in
.env file, you may refer to .env.example as an example
- Start the bot:
uv run nazurin or python -m nazurin
Docker
- Configure the options in
.env
- Run
docker-compose up -d to use the lastet pre-built Docker images. (Alternatively, you may build the image yourself: docker-compose up -d --build)
Usage
Use /help command to get a list of available commands or help for a specific command, use /set_commands to set bot commands in command menu.
Some system commands are listed below:
/clear_cache — Clear cache
/help [COMMAND] — Get help of all commands or a specific command
/ping — Pong
/set_commands — Set commands
/start — Get help
How to update your collection
Send the bot a message with a link of supported sites, this message will be forwarded to GALLERY channel, the bot will then download the original images from the site, send the files to ALBUM channel, and finally store to your custom destinations.
Tips: On mobile you can use the share button in apps, as long as the final message contains a link.
评论