Add goals to status text.
This commit is contained in:
@@ -239,7 +239,7 @@ class SubathonComponent(cmds.Component):
|
|||||||
goals = await active.get_goals()
|
goals = await active.get_goals()
|
||||||
total_goals = len(goals)
|
total_goals = len(goals)
|
||||||
donegoals = len([goal for goal in goals if score >= goal.required_score])
|
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()
|
secs = await active.get_remaining()
|
||||||
remaining = strfdelta(timedelta(seconds=secs))
|
remaining = strfdelta(timedelta(seconds=secs))
|
||||||
@@ -248,7 +248,7 @@ class SubathonComponent(cmds.Component):
|
|||||||
duration = strfdelta(timedelta(seconds=secs))
|
duration = strfdelta(timedelta(seconds=secs))
|
||||||
|
|
||||||
text = (
|
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)
|
await ctx.reply(text)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user