An open API service indexing awesome lists of open source software.

https://github.com/exposedcat/lifebox-tg

Telegram bot that cares about your mood and social state
https://github.com/exposedcat/lifebox-tg

Last synced: 8 days ago
JSON representation

Telegram bot that cares about your mood and social state

Awesome Lists containing this project

README

          

# LifeBox Telegram Bot

## Run with Podman Compose

1. Copy `.env.example` to `.env` and fill in real values (especially `TOKEN`).
2. Start the bot and MongoDB:

```bash
podman compose up --build -d
```

3. Check logs:

```bash
podman compose logs -f lifebox_bot
```

4. Stop services:

```bash
podman compose down
```

The API is exposed on `http://localhost:8081`.
This is mapped as `127.0.0.1:8081:8081` in `compose.yaml`, which keeps it reachable only from your local machine.
If you do not need host access to the API endpoint, you can remove the `ports` section from `lifebox_bot`.

`compose.yaml` overrides `DB_CONNECTION_STRING` for the bot service to use the internal MongoDB host (`lifebox_db`), so your regular local `.env` value can stay unchanged.