Telegram bot designed for the AGH University of Science and Technology community. Features captcha verification to prevent spam and anecdote sending to keep the community engaged.
-
Ensure Docker and Docker Compose are installed.
-
Clone and navigate to the repository:
git clone https://github.com/nikijaz/agh-bot.git cd agh-bot/ -
Create
.envfile with your configuration. You can use.env.exampleas a template. -
Create
anecdotes.txtfile with anecdotes, each separated by "***". -
Run compose in production mode:
docker compose -f docker-compose.prod.yml up -d
-
Ensure Docker and Docker Compose are installed.
-
Clone and navigate to the repository:
git clone https://github.com/nikijaz/agh-bot.git cd agh-bot/ -
Create
.envfile with your configuration. You can use.env.exampleas a template. -
Create
anecdotes.txtfile with anecdotes, each separated by "***". -
Run compose in development mode:
docker compose -f docker-compose.dev.yml up
-
Make changes to the codebase. The bot will automatically reload.
-
Check for any typing, linting or formatting issues:
mypy . ruff check . ruff format --check .
Python powers the bot's logic, with uv as the package manager. The bot uses the Aiogram library for Telegram API communication. PostgreSQL serves as the database, with peewee for ORM. Docker is used for containerization.