ID-Start-Winter22 / travy-train-travel-companion

This repository contains the code for "Travy - the Train Travel Companion" chatbot, created as part of the first semester of "Informatik und Design", BSc.
Apache License 2.0
4 stars 2 forks source link

Implement prettified timeoutput into existing bot answers #32

Closed lynnstarke closed 1 year ago

lynnstarke commented 1 year ago

As a chatbot user I want to receive nicely formatted time about my train. E.g. departure and arrival.

Where the function has to be used in the action.py:

The prettify_time function has to be used like this for example:

dispatcher.utter_message(f"Achtung! Deine Zugreise verlängert sich um {train_entity_value} Minuten.\nNeue Ankunftszeit: {prettify_time(new_time)}")

Expexted result: Example: Abfahrtszeit: Heute (08.12.2022) um 09:38 Uhr Ankunftszeit: Heute (08.12.2022) um 13:32 Uhr

theopfr commented 1 year ago

done!

theopfr commented 1 year ago

Issues in der Wiki: https://github.com/ID-Start-Winter22/chat-team-11/wiki/%F0%9F%8F%83%E2%80%8D%E2%99%82%EF%B8%8F-Ideation-und-Sprint-1#-issues