Commit graph

15 commits

Author SHA1 Message Date
JuliusFreudenberger
7ee9e2a9f1 Now supports ambiguous stations.
When multiple stations are found, the user is presented with buttons to
chosse from. The arguments entered before will be preserved
2019-10-17 20:19:37 +02:00
JuliusFreudenberger
0d92c0abe6 Further externalization and exceptions
some more methods for easier accessing the steps done to give the answer
now also includes exeptions with handlers
2019-10-17 19:03:09 +02:00
JuliusFreudenberger
86438abdec Externalized processing of requests to another method
Now it is easier to get the finished messages and send it if no reply is
possible
2019-10-17 16:42:14 +02:00
JuliusFreudenberger
0e08ae8b2b removed unnecessary test method 2019-10-17 14:37:11 +02:00
JuliusFreudenberger
21a9da3684 Parsing args now based on regex; implemented filter by line
Implementing new arguments is now much easier!
Also user can now filter by line
2019-10-16 19:59:13 +02:00
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