Add goals to status text.

This commit is contained in:
2025-07-28 14:07:25 +10:00
parent 122dcfca3e
commit 11b214b553

View File

@@ -239,7 +239,7 @@ class SubathonComponent(cmds.Component):
goals = await active.get_goals()
total_goals = len(goals)
donegoals = len([goal for goal in goals if score >= goal.required_score])
goalstr = f"{donegoals}/{total_goals} achieved!"
goalstr = f"{donegoals}/{total_goals} achieved"
secs = await active.get_remaining()
remaining = strfdelta(timedelta(seconds=secs))
@@ -248,7 +248,7 @@ class SubathonComponent(cmds.Component):
duration = strfdelta(timedelta(seconds=secs))
text = (
f"Subathon running for {duration}! {score} (equivalent) subscriptions recieved, and {remaining} left on the timer"
f"Subathon running for {duration}! {score} (equivalent) subscriptions recieved, {goals}, and {remaining} left on the timer"
)
await ctx.reply(text)
else: