Skip to content

Repository files navigation

AGH Bot

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.

Installation

  1. Ensure Docker and Docker Compose are installed.

  2. Clone and navigate to the repository:

    git clone https://github.com/nikijaz/agh-bot.git
    cd agh-bot/
  3. Create .env file with your configuration. You can use .env.example as a template.

  4. Create anecdotes.txt file with anecdotes, each separated by "***".

  5. Run compose in production mode:

    docker compose -f docker-compose.prod.yml up -d

Development

  1. Ensure Docker and Docker Compose are installed.

  2. Clone and navigate to the repository:

    git clone https://github.com/nikijaz/agh-bot.git
    cd agh-bot/
  3. Create .env file with your configuration. You can use .env.example as a template.

  4. Create anecdotes.txt file with anecdotes, each separated by "***".

  5. Run compose in development mode:

    docker compose -f docker-compose.dev.yml up
  6. Make changes to the codebase. The bot will automatically reload.

  7. Check for any typing, linting or formatting issues:

    mypy .
    ruff check .
    ruff format --check .

Technologies Used

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.

About

A multi-purpose Telegram bot for AGH University’s community, written in Python using Aiogram.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages