Skip to content

Telegram bot that allows users to register for push notifications for bus arrival timings at specific times. Think alarm clock but with bus arrival timings.

Notifications You must be signed in to change notification settings

k-jingyang/bus-notifier-telegram-bot

Repository files navigation

SG Bus Notifier - Telegram Bot alt text

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.

Setup

  1. 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
  1. Generate reference data
$ cd refdata
$ chmod +x bootstrap_reference_data.sh
$ ./bootstrap_reference_data.sh
  1. Run using go run or build binary using go build

bus-notifier will look for refdata/bus_services.txt & refdata/refdata.db during execution. Ensure that these files are present before running.

Improvements

  • Create a Makefile to download reference data, build binary and place them into a build folder

About

Telegram bot that allows users to register for push notifications for bus arrival timings at specific times. Think alarm clock but with bus arrival timings.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published