Giter Site home page Giter Site logo

derhuerst / vbb-telegram Goto Github PK

View Code? Open in Web Editor NEW
17.0 5.0 3.0 511 KB

A Telegram bot for Berlin & Brandenburg public transport.

Home Page: https://telegram.me/public_transport_bot

License: ISC License

JavaScript 100.00%
vbb bvg berlin transport telegram transit

vbb-telegram's Introduction

vbb-telegram

A Telegram bot for Berlin & Brandenburg public transport. Try it!

https://telegram.me/public_transport_bot ISC-licensed chat with me on Gitter support me on Patreon

the bot in action

Installing

git clone https://github.com/derhuerst/vbb-telegram.git vbb-telegram
cd vbb-telegram
npm install --production
export NODE_ENV=dev TOKEN=… node index.js

Contributing

If you have a question or have difficulties using vbb-telegram, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to the issues page.

vbb-telegram's People

Contributors

derhuerst avatar sebkur avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

vbb-telegram's Issues

Presets for "When"

Hi,

thanks for your bot, I like it! (And I think, we've met last year at the Coding Amigos ;))

To save the user some typing, can you add some preset "options" when asking for when? For example, I don't want to literally type "now", I'd like to have it offered and just tap it.

Or: Can you allow some shortcuts? Like

  • n for "now"
  • 10m for "in 10 minutes"
  • 5h for "in 5 hours"

Thanks! :)

issue with kotti -> bellevue

53306530 '8/10/2016' '3:15 PM' '/r⁣ Get routes from A to B.'
53306530 '8/10/2016' '3:15 PM' 'kotti'
53306530 '8/10/2016' '3:15 PM' 'bellevue'
53306530 '8/10/2016' '3:15 PM' 'now'
TypeError: r.map is not a function
    at Object.routes (/root/vbb-telegram/lib/render.js:72:3)
    at /root/vbb-telegram/commands/routes.js:44:28
    at next (native)
    at resolved (/root/vbb-telegram/node_modules/so/lib/so.js:30:46)
    at process._tickCallback (internal/process/next_tick.js:103:7)

Bot startet nicht

Hallo Jannis, erstmal danke für diesen Bot :)
Ich würde gerne erleben wie er funktioniert, leider habe ich ihn bei mir noch nicht zum laufen gebracht. Er reagiert auf keine meiner Eingaben. Wärst du so nett und würdest mir diesbezüglich helfen?
Liebe Grüße
Flo

run bot on a new server

When I connect in Telegram to the public_transport_bot and /start, nothings happens. Also stuff like /route doesn't do anything.

Personal shortcuts

How about allowing to set some personal shortcuts? For instance, let's say I live at Ostkreuz and work in Frohnau, then I'd like to set only once something like

  • /set-shortcut work, Ostkreuz, Frohnau, now

This make the bot remember a shortcut named work.

Afterwards, I can anytime call /shortcut work, and get next connection fetched.

This could be also extended to the current location. For instance, I could set

  • /set-shortcut home, [current location], Ostkreuz, now

Then, when I call /shortcut home, my current location gets fetched and then the next connection – without any tedious typing.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.