UNPKG

hubot-vvs

Version:

Ask your hubot to tell you when your VVS- train from a location in a given direction departs.

39 lines (25 loc) 1.14 kB
hubot-vvs =============== Ask your hubot to tell you the next two VVS- trains from your origin in a specific direction.<br /> It is important that you remember that hubot does only use the names as the VVS wrote them into their database. For example something like Marbach will not be found. You should have searched for Marbach (N). ## Installation Run the following command: ``` $ npm install hubot-vvs ``` Then make sure the dependencies are installed: ``` $ npm install ``` You may also want to consider running the first command with the `--save` option to add it to your package.json so you don't have to install it manually every time. ## Usage Your hubot will listen to the following command:<br /><br /> `hubot vvs from <origin> to <destination>` #### Example ``` hubot> hubot vvs from gärtringen to herrenberg hubot> The S1 from Gärtringen to Herrenberg leaves at 17:11 hubot> The S1 from Gärtringen to Herrenberg leaves at 17:24 ``` ## Bugs There may be some bugs in this script. If you encounter any please open an issue and I will try to fix them as soon as possible.