Sign inSign up

nonjosh/acgn-bot

By nonjosh

Updated 29 days ago

Telegram bot: Check anime/comic/game/novel websites update

Image
0

1.7K

nonjosh/acgn-bot repository overview

Telegram bot: Check anime/comic/game/novel websites update

docker build workflow pylint workflow unittest workflow CodeQL workflow

Introduction

This bot scans anime/comic/game/novel websites, and send telegram message to specific channel/group/chat upon new chapters releases.

Screenshots

alt text alt text

Supported websites
Default Settings
SettingDefault value
Checking Interval30~60 min
Retry Interval5 min
Maximum Retry Number5
Supported Telegram Commands
CommandDescription
/list_configList all valid config websites
/list_latestList latest chapters
/list_last_checkList last check time
Environment Variables
NameDefault valueDescription
TOKENTelegram Bot Token
CHAT_IDTelegram Chat ID
CONFIG_YML_URLConfig file url (Optional)
CONFIG_YML_FILEPATHconfig/list.yamlConfig file path (Optional, only used when CONFIG_YML_URL is not set)

How to use

Setup

Choose either option below to run the application

Option 1: Python
  1. Create .env

    TOKEN=<your token>
    CHAT_ID=<your chat_id>
    
  2. Start the application with the following command:

    pip install -r requirements.txt
    python main.py
    
Option 2: Docker Compose
  1. Create .env

    TOKEN=<your token>
    CHAT_ID=<your chat_id>
    
  2. Start the container with the following command:

    docker-compose up -d
    
Option 3: Kubernetes
  1. Set your bot token and chat_id in secret/acgn-bot

    # Examples in k8s/secrets/k8s-secrets.yaml, remember to change to your token/chat_id first
    kubectl apply -f k8s/secrets/k8s-secrets.yaml
    
  2. Set your checking list yaml file in configmap/acgn-bot.list.yaml

    kubectl create configmap acgn-bot.list.yaml --from-file=config/list.yaml --dry-run=client -o yaml | kubectl apply -f -
    
  3. Build local image and create deployment

    docker build . -t nonjosh/acgn-bot
    kubectl apply -k k8s/base
    
Edit your list

Edit your list in the file list.yaml. Restart container to apply changes.

Features to add

  • hack cocomanhua cloudflare DDOS protection
  • Support other IM bot other than Telegram (e.g. Signal, Discord)
  • Add back time range for checking

Github

https://github.com/nonjosh/acgn-bot

Tag summary

Content type

Image

Digest

sha256:162ba5350

Size

53.1 MB

Last updated

about 1 year ago

docker pull nonjosh/acgn-bot