Add goals to status text.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user