From 85eb52d2e1d8c91d99845f1ac16b1a68168b3441 Mon Sep 17 00:00:00 2001 From: imcompiling Date: Thu, 14 Sep 2023 11:33:27 -0400 Subject: [PATCH] add word to message string. --- cogs/loops/daily_loop.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cogs/loops/daily_loop.py b/cogs/loops/daily_loop.py index 0f7741c..68681a9 100644 --- a/cogs/loops/daily_loop.py +++ b/cogs/loops/daily_loop.py @@ -123,5 +123,6 @@ class DailyLoop(commands.Cog, name="Daily Loop"): for member in cakedays: years = today.year - member.joined_at.year - msg = f"Happy Cake day! <@{member.id}> joined the discord {years} ago!" + year_str = "years" if years > 1 else "year" + msg = f"Happy Cake day! <@{member.id}> joined the discord {years} {year_str} ago!" await announce_channel.send(msg)