Update countdown
This commit is contained in:
16
main.py
16
main.py
@ -64,13 +64,15 @@ async def reminders(ctx):
|
|||||||
countdown.seconds // 60 % 60,
|
countdown.seconds // 60 % 60,
|
||||||
)
|
)
|
||||||
|
|
||||||
the_final_countdown = ""
|
the_final_countdown = ", ".join(
|
||||||
if days != 0:
|
f"{x} {y}{'s'*(x!=1)}"
|
||||||
the_final_countdown += f"{days} days, "
|
for x, y in (
|
||||||
if hours != 0:
|
(days, "day"),
|
||||||
the_final_countdown += f"{hours} hours, "
|
(hours, "hour"),
|
||||||
if minutes != 0:
|
(minutes, "minute"),
|
||||||
the_final_countdown += f"{minutes} minutes"
|
)
|
||||||
|
if x
|
||||||
|
)
|
||||||
|
|
||||||
embed.add_field(
|
embed.add_field(
|
||||||
name=f"{message}",
|
name=f"{message}",
|
||||||
|
Reference in New Issue
Block a user