Commit graph

10 commits

Author SHA1 Message Date
JuliusFreudenberger
ce24dec0c2 Used wrong query term beacuse self. was missing
🤦, querying for a method does not work obviously
2019-10-16 14:18:40 +02:00
JuliusFreudenberger
97f87cc9cc Fixed error handling for unknown stations 2019-10-16 12:37:56 +02:00
JuliusFreudenberger
b23a86cd90 Fixed bug when query term was not complete when no destination was given
the last char was cut before
2019-10-16 12:36:14 +02:00
JuliusFreudenberger
274c5b1b48 Fixed bug when station containing "to" was treated as separator 2019-10-16 12:35:00 +02:00
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