https://github.com/neurrone/food-ordering-bot
Telegram bot to facilitate group food orders, written in Rust
https://github.com/neurrone/food-ordering-bot
Last synced: about 2 months ago
JSON representation
Telegram bot to facilitate group food orders, written in Rust
- Host: GitHub
- URL: https://github.com/neurrone/food-ordering-bot
- Owner: Neurrone
- License: mit
- Created: 2019-07-21T16:43:04.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-06-21T22:12:52.000Z (almost 2 years ago)
- Last Synced: 2025-02-13T19:51:28.157Z (3 months ago)
- Language: Rust
- Size: 117 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Food-ordering-bot: a Telegram bot to facilitate group food orders, written in Rust
## Usage
Add `food_ordering_bot` to a group on Telegram, and use `/help` for a list of commands.
```sh
/start - starts an order. For example, /start waffles.
/view - shows active orders.The following commands will ask for the order name, if there are multiple active orders.
/order [order name] - adds an item to an order, or replaces the previously chosen one.
/cancel [order name] - removes your previously selected item from an order.
/end [order name] - stops an order.
```## Building from source
As usual for Cargo, build with `cargo build`, run with `cargo run` and run unit tests with `cargo test`.
The bot expects its telegram bot token to be provided using the `TELEGRAM_BOT_TOKEN` environment variable, and panicks if not found.
## Running On Docker
```Rust
docker build -t food-ordering-bot .
docker run -e TELEGRAM_BOT_TOKEN= -it food-ordering-bot
```## License
MIT