Commit graph

6 commits

Author SHA1 Message Date
JuliusFreudenberger
78c337a8eb Added object for query; added option to filter by destination
Parsing and getting arguments now is much easier with object
if user additionally sends "to {destination}" the departures are
filtered to match only this destination (case-insensitive)
2019-10-15 19:42:35 +02:00
JuliusFreudenberger
9338990491 Added check for empty query response
Now an unknown station is reported to the user and no longer throws an
error.
2019-10-15 19:26:22 +02:00
JuliusFreudenberger
80c2fb4b9d Renamed function 'get_stations_by_search_query'
renamed to 'get_station_id_list'
2019-10-15 19:17:57 +02:00
JuliusFreudenberger
69e5285b88 Added ability to give desired number of departures
the input is tested for the last argument: if the it is a number, it is
used as this number
2019-10-14 13:22:56 +02:00
JuliusFreudenberger
ccc9577716 Added first functional code
ability to insert a station_id via inline message; ability to display
departures for specified station_name or station_id in direct chat
2019-10-11 22:40:28 +02:00
JuliusFreudenberger
87b2b5c875 Add gitignore 2019-10-11 22:36:50 +02:00