|
|
|
@@ -206,7 +206,7 @@ class SubathonComponent(cmds.Component):
|
|
|
|
name = bits_payload.user.name
|
|
|
|
name = bits_payload.user.name
|
|
|
|
pl = 's' if bits_payload.bits != 1 else ''
|
|
|
|
pl = 's' if bits_payload.bits != 1 else ''
|
|
|
|
|
|
|
|
|
|
|
|
contrib_str = f"{name} contributed {score} bit{pl}"
|
|
|
|
contrib_str = f"{name} contributed {score} point{pl}"
|
|
|
|
if not await active.check_cap():
|
|
|
|
if not await active.check_cap():
|
|
|
|
contrib_str += f" and added {added} to the timer! Thank you <3"
|
|
|
|
contrib_str += f" and added {added} to the timer! Thank you <3"
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
@@ -252,7 +252,7 @@ class SubathonComponent(cmds.Component):
|
|
|
|
name = sub_payload.user.name
|
|
|
|
name = sub_payload.user.name
|
|
|
|
pl = 's' if score > 1 else ''
|
|
|
|
pl = 's' if score > 1 else ''
|
|
|
|
|
|
|
|
|
|
|
|
contrib_str = f"{name} contributed {score} sub{pl}"
|
|
|
|
contrib_str = f"{name} contributed {score} point{pl}"
|
|
|
|
if not await active.check_cap():
|
|
|
|
if not await active.check_cap():
|
|
|
|
contrib_str += f" and added {added} to the timer! Thank you <3"
|
|
|
|
contrib_str += f" and added {added} to the timer! Thank you <3"
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
@@ -294,7 +294,7 @@ class SubathonComponent(cmds.Component):
|
|
|
|
added = f"{added_min} minutes"
|
|
|
|
added = f"{added_min} minutes"
|
|
|
|
name = gift_payload.user.name if gift_payload.user else 'Anonymous'
|
|
|
|
name = gift_payload.user.name if gift_payload.user else 'Anonymous'
|
|
|
|
|
|
|
|
|
|
|
|
contrib_str = f"{name} contributed {score} subs"
|
|
|
|
contrib_str = f"{name} contributed {score} points"
|
|
|
|
if not await active.check_cap():
|
|
|
|
if not await active.check_cap():
|
|
|
|
contrib_str += f" and added {added} to the timer! Thank you <3"
|
|
|
|
contrib_str += f" and added {added} to the timer! Thank you <3"
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
@@ -337,7 +337,7 @@ class SubathonComponent(cmds.Component):
|
|
|
|
name = sub_payload.user.name
|
|
|
|
name = sub_payload.user.name
|
|
|
|
pl = 's' if score > 1 else ''
|
|
|
|
pl = 's' if score > 1 else ''
|
|
|
|
|
|
|
|
|
|
|
|
contrib_str = f"{name} contributed {score} sub{pl}"
|
|
|
|
contrib_str = f"{name} contributed {score} points{pl}"
|
|
|
|
if not await active.check_cap():
|
|
|
|
if not await active.check_cap():
|
|
|
|
contrib_str += f" and added {added} to the timer! Thank you <3"
|
|
|
|
contrib_str += f" and added {added} to the timer! Thank you <3"
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
@@ -385,7 +385,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, {goalstr}, and {remaining} left on the timer"
|
|
|
|
f"Subathon running for {duration}! {score} points recieved, {goalstr}, and {remaining} left on the timer"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
await ctx.reply(text)
|
|
|
|
await ctx.reply(text)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
@@ -432,7 +432,7 @@ class SubathonComponent(cmds.Component):
|
|
|
|
dur = strfdelta(timedelta(seconds=dursecs))
|
|
|
|
dur = strfdelta(timedelta(seconds=dursecs))
|
|
|
|
|
|
|
|
|
|
|
|
await ctx.reply(
|
|
|
|
await ctx.reply(
|
|
|
|
f"Subathon complete after {dur} with a total of {total} subs, congratulations!"
|
|
|
|
f"Subathon complete after {dur} with a total of {total} points, congratulations!"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
await ctx.reply("No active subathon to stop.")
|
|
|
|
await ctx.reply("No active subathon to stop.")
|
|
|
|
|