Merge branch 'master' of https://github.com/L0rd0fB0red0m/chat-bot
This commit is contained in:
commit
0618bb7219
2
main.py
2
main.py
@ -352,7 +352,7 @@ class ChatBot():
|
|||||||
for step in con["sections"]:
|
for step in con["sections"]:
|
||||||
if step["journey"] != None:
|
if step["journey"] != None:
|
||||||
text += step["journey"]["passList"][0]["station"]["name"] + " (" + datetime.datetime.fromtimestamp(int(step["journey"]["passList"][0]["departureTimestamp"])).strftime("%H:%M") + ")\n"
|
text += step["journey"]["passList"][0]["station"]["name"] + " (" + datetime.datetime.fromtimestamp(int(step["journey"]["passList"][0]["departureTimestamp"])).strftime("%H:%M") + ")\n"
|
||||||
text += "L. " + step["journey"]["number"] + " :right_arrow: \n"
|
text += ":right_arrow: L. " + step["journey"]["number"] + " :right_arrow: \n"
|
||||||
text += step["journey"]["passList"][-1]["station"]["name"] + " (" + datetime.datetime.fromtimestamp(int(step["journey"]["passList"][-1]["arrivalTimestamp"])).strftime("%H:%M") +")\n"
|
text += step["journey"]["passList"][-1]["station"]["name"] + " (" + datetime.datetime.fromtimestamp(int(step["journey"]["passList"][-1]["arrivalTimestamp"])).strftime("%H:%M") +")\n"
|
||||||
else:
|
else:
|
||||||
text += "Walk."
|
text += "Walk."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user