/cafebot

🥘 cafebot is created to provide order service for a local cafe

Primary LanguageGoBSD 2-Clause "Simplified" LicenseBSD-2-Clause

🥘 Cafebot

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.

Demo

ezgif com-video-to-gif

Usage instruction

  1. Open telegram app
  2. Chat with @BotFather -> create your own bot
  3. Copy your bot API Token
  4. Clone this repo
git clone git@github.com:yarikbratashchuk/cafebot.git && cd cafebot
  1. Build it from source (requires go toolchain to be installed)
make install 
  1. 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

  1. Edit cafe.json config file to match your particular cafe
  2. Run app and play with it
cafebot --tg-api-token=YOUR_TELEGRAM_BOT_API_TOKEN