Bot na Lista bot (Portuguese word play for add to the list) made with 💜 by Cuducos and Flávia.
Send a message or add @bot_na_lista_bot
to a group to get started.
Comando | Descrição |
---|---|
<string> |
Adiciona <string> Ã lista de compras |
<number> |
Remove Ãtem número <number> da lista de compras |
/view |
Mostra a lista de compras |
Variable | Description |
---|---|
DATABASE_URL |
Credentials for a PostgreSQL database |
TELOXIDE_TOKEN |
Telegram bot token |
PORT |
Bot webhook port (optional) |
HOST |
Bot webhook host (optional) |
If the environment variables PORT
and HOST
are set, the bot starts as a webhook. Otherwise, it starts as a polling bot.
If you need a quick database for development, ./contrib/db.sh
starts a Docker container with one at postgres://bot:lista@0.0.0.0:5432/bot_na_lista?sslmode=disable
.
If you need one for tests, ./contrib/db.sh --test
starts a Docker container with no data persistence at the same URI.
To stop the database use docker stop bot-na-lista-db
.
$ cargo fmt
$ cargo clippy --fix
$ cargo test -- --test-threads 1