An open API service indexing awesome lists of open source software.

https://github.com/joachimprinzbach/db-ontime

Telegram Bot that sends messages for train delays
https://github.com/joachimprinzbach/db-ontime

bahn db delay telegram-bot train

Last synced: 8 months ago
JSON representation

Telegram Bot that sends messages for train delays

Awesome Lists containing this project

README

          

# db-ontime
[![Greenkeeper badge](https://badges.greenkeeper.io/joachimprinzbach/db-ontime.svg)](https://greenkeeper.io/)
[![Build Status](https://travis-ci.org/joachimprinzbach/db-ontime.svg?branch=master)](https://travis-ci.org/joachimprinzbach/db-ontime)

Telegram Bot that sends messages for train delays

## Hacking on db-ontime
You only need to have node.js (>= 8.4.0) installed.

### Installing node.js:

- [Node.js](http://nodejs.org) >= 8.4.0

### Configuring telegram
Edit the config.json file to configure the application.

- Contact [@BotFather](http://telegram.me/BotFather) on Telegram to create and get a bot token.
- ChatId: See https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id for information how to obtain the chatId of a chat

### Installing dependencies
```sh
$ npm install
```

### Run the application locally
```sh
$ node index
```