Skip to content

xkawi/sgbustimebot

Repository files navigation

SgBusTimeBot

A simple Telegram Bot implemented in Node.js using Express 4 and a few libraries to help you view bus arrival timings of Singapore's Public Transport. https://telegram.me/sgbustimebot

Telegram Bot

Refer to Telegram Bot and Telegram Bot API

DISCLAIMER

This is a 10 years old project (as of April 2026), hence it probably could not run anymore. The source code is made open source to serves as a reference of how my software development style has evolved across time. But if you still wish to copy or fork it, use it at your own risk.

Running Locally

Make sure you have Node.js installed. My personal preference would be to use NVM to install multiple versions of Node.js if you are using OS X or Ubuntu. If you are using Windows, can consider nvm-windows.

$ git clone git@github.com:xkawi/sgbustimebot.git # or clone your own fork
$ cd sgbustimebot
$ cp config.sample.json config.json # replace config information with yours
$ npm install
$ npm start

Your app should now be running on localhost:5000. This just ensure that your code is working fine and has no error. To start receiving and responding to user's commands (Telegram Users), please deploy it to the Internet. You can deploy it anywhere and anyhow so long you know how to deploy Node.js applications. Here are some references:

Bus Stops and Arrival Timings Information

Thanks for the great work by cheaun/busrouter-sg for providing a tool to retrieve all the available bus stops in Singapore.

Please note that, all of the actual data such as routes, bus stops, bus arrival timing and services are taken from http://mytransport.sg/, which means they are copyrighted by the Land Transport Authority.

Encounter any issues? or just want to contribute?

If anyone interested to built on top of this source code, feel free to fork it and create pull request if you want to.

PS: if you encounter any issue specific to installation process, please consult their own documentation.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors