Return the_finaL_countdown variable immediately

rip joke
This commit is contained in:
2021-08-25 21:24:28 +02:00
parent 83b35c6739
commit fe1d73d67f

View File

@ -56,7 +56,7 @@ def calc_countdown(job) -> str:
countdown.seconds // 3600, countdown.seconds // 3600,
countdown.seconds // 60 % 60, countdown.seconds // 60 % 60,
) )
the_final_countdown = ", ".join( return ", ".join(
f"{x} {y}{'s'*(x!=1)}" f"{x} {y}{'s'*(x!=1)}"
for x, y in ( for x, y in (
(days, "day"), (days, "day"),
@ -65,7 +65,6 @@ def calc_countdown(job) -> str:
) )
if x if x
) )
return the_final_countdown
@bot.event @bot.event