Cafebot is a telegram bot for making orders in a local cafe. Its handy if you don't want to make an order by a call or sit and wait for your order to be ready.
- Open telegram app
- Chat with @BotFather -> create your own bot
- Copy your bot
API Token
- Clone this repo
git clone git@github.com:yarikbratashchuk/cafebot.git && cd cafebot
- Build it from source (requires go toolchain to be installed)
make install
- Check installation
cafebot --help
Usage:
cafebot [OPTIONS]
Application Options:
-p, --port= port to listen on (default: 8080)
--tg-api-token= telegram bot api token [$TG_API_TOKEN]
--log-level= log level for all subsystems {trace, debug, info, error, critical} (default: info)
--cafe-config= cafe config file path (default: cafe.json)
Help Options:
-h, --help Show this help message
- Edit
cafe.json
config file to match your particular cafe - Run app and play with it
cafebot --tg-api-token=YOUR_TELEGRAM_BOT_API_TOKEN