Telegram bot that allows users to register for push notifications for Singapore bus arrival timings at specific times.
Using this bot, users need not look up for bus arrival timings if it's a routine (e.g. the morning commute)
Think alarm clock but with bus arrival timings.
- Create a .env file with the contents, place it in the root directory of the project
TELEGRAM_API_TOKEN=YOUR_TELEGRAM_API_TOKEN
LTA_API_TOKEN=YOUR_LTA_API_TOKEN
- Generate reference data
$ cd refdata
$ chmod +x bootstrap_reference_data.sh
$ ./bootstrap_reference_data.sh
- Run using
go run
or build binary usinggo build
bus-notifier will look for
refdata/bus_services.txt
&refdata/refdata.db
during execution. Ensure that these files are present before running.
- Create a Makefile to download reference data, build binary and place them into a build folder