Sign inSign up

yyoung01/nazurin

By yyoung01

•Updated about 2 months ago

Images collection done right. A Telegram bot that helps you collect ACG illustrations.

Image
1

4.0K

yyoung01/nazurin repository overview

⁠Nazurin

Codacy Badge

Documentation⁠ | 中文文档⁠

小さな小さな賢将, a Telegram bot that helps you collect ACG illustrations from various sites.

⁠Architecture

architecture.png

⁠Features

⁠Supported Sites
⁠Supported Databases
DriverUsageConfig ValueNote
TinyDB⁠TinyDB⁠LocalDefault
Firestore⁠Firestore⁠Firebase
MongoDB⁠MongoDB⁠MongoMongoDB Atlas⁠ supported
Cloudant⁠Cloudant⁠Cloudant

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
NameUsageConfig ValueNote
LocalLocal⁠LocalDefault
Telegram⁠Telegram⁠TelegramAdded in v2
MEGA⁠MEGA⁠Mega
Google Drive⁠Google Drive⁠GoogleDrive
OneDrive⁠OneDrive⁠OneDrive

⁠Configuration

For more information, see Documentation⁠.

⁠Deploy

For more deploy options, checkout Documentation⁠.

⁠Manual
  1. Install uv⁠
  2. Create virtual environment and install dependencies: uv sync
  3. Set the required environment variables or place them in .env file, you may refer to .env.example as an example
  4. Start the bot: uv run nazurin or python -m nazurin
⁠Docker
  1. Configure the options in .env
  2. 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

Commands:

  • /ping - pong
  • /pixiv <id> - view pixiv artwork
  • /pixiv_download <id> - download pixiv artwork
  • /danbooru <id> - view danbooru post
  • /danbooru_download <id> - download danbooru post
  • /yandere <id> - view yandere post
  • /yandere_download <id> - download yandere post
  • /konachan <id> - view konachan post
  • /konachan_download <id> - download konachan post
  • /zerochan <id> - view zerochan post
  • /zerochan_download <id> - download zerochan post
  • /bookmark <id> - bookmark pixiv artwork
  • /clear_cache - clear download cache
  • /help - get help text
⁠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.

Tag summary

Content type

Image

Digest

sha256:c95473960…

Size

153.8 MB

Last updated

about 2 months ago

docker pull yyoung01/nazurin