Added command aliases & 404 error message
This commit is contained in:
parent
2a49fb5668
commit
e404753714
|
@ -26,7 +26,7 @@ class MainLoop:
|
|||
|
||||
if refetch == 0:
|
||||
self.controller.time()
|
||||
Departure.fetch(self.stop_id, 10)
|
||||
Departure.fetch(self.stop_id, 20)
|
||||
|
||||
refetch = (refetch + 1) % 3
|
||||
regenerate = (regenerate + 1) % (6*30)
|
||||
|
@ -42,19 +42,19 @@ class MainLoop:
|
|||
print("> ", end="")
|
||||
command = input()
|
||||
|
||||
if command == "d":
|
||||
print("")
|
||||
if command in ["d", "dep", "departures"]:
|
||||
for did in Departure.storage:
|
||||
print(Departure.storage[did])
|
||||
print("")
|
||||
if len(Departure.storage) == 0:
|
||||
print("No loaded departures")
|
||||
|
||||
if command == "q":
|
||||
print("")
|
||||
if command in ["q", "queue"]:
|
||||
for m in self.controller.message_pool:
|
||||
print(m)
|
||||
print("")
|
||||
if len(self.controller.message_pool) == 0:
|
||||
print("No messages in queue")
|
||||
|
||||
if command == "s":
|
||||
if command in ["s", "stop"]:
|
||||
print("Stopping...")
|
||||
self.ended = True
|
||||
self.controller.message_pool = []
|
||||
|
|
Loading…
Reference in a new issue