How to run

Docker

sudo docker compose up -d

OR

sudo docker run -d \
-e BOT_TOKEN=<Your TG BOT TOKEN> \
-e BOOK_SEARCHER_BASE_URL=https://zlib.cydiar.com \
--name bookbookgo_bot \
--restart unless-stopped \
lewangdev/bookbookgo_bot

From Source Code

  1. Get the source code
git clone https://github.com/lewangdev/bookbookgo_bot.git
  1. Install dependencies.
python3 -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt
  1. Create a file .env which contains this.
# Put your actual bot token
# Keep this file secret
# Use https://t.me/botfather to create your bot
BOT_TOKEN =

# https://github.com/book-searcher-org/book-searcher
BOOK_SEARCHER_BASE_URL = https://zlib.cydiar.com

# https://ipfs.github.io/public-gateway-checker/
IPFS_GATEWAY_BASE_URL = https://ipfs.io

LOG_LEVEL = debug
  1. Now run python bookbookgo_bot/main.py, you may press CTRL + c to stop the bot.

作者 灰武士

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注