Skip to content

Repository files navigation

TWPytifier

A Python bot that makes it easy to modify announcements for your clients.

Features

  • Set, modify and remove a header and a footer
  • Add and remove announcements
  • Send news to all bot users
  • Support formatted messages

What You Can Get

Examples of results you can achieve: example

Installation & Run

Clone the repository:

git clone https://github.com/LiNiEriya/TWPytifier.git
cd TWPytifier

Configuration

Before starting the bot, create an .env file in the project root and define the following environment variables:

BOT_TOKEN="your_bot_token"
ADMIN_IDS=123456789, 987654321
DB_PATH="data.db"

Docker

Build the image and start the bot:

docker compose up --build

Python

Install the required dependencies and run the bot:

pip install -r requirements.txt
python -m main