Compare commits

...

2 Commits

Author SHA1 Message Date
2c8bc4ae24 fix: Add timecap to data. 2025-09-02 08:56:41 +10:00
37ecb2d7ee tweak: Update wording. 2025-09-02 08:47:59 +10:00
2 changed files with 7 additions and 6 deletions

View File

@@ -15,6 +15,7 @@ CREATE TABLE subathons(
bit_score NUMERIC NOT NULL,
score_time NUMERIC NOT NULL,
duration INTEGER NOT NULL DEFAULT 0,
timecap INTEGER,
ended_at TIMESTAMPTZ
);

View File

@@ -206,7 +206,7 @@ class SubathonComponent(cmds.Component):
name = bits_payload.user.name
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():
contrib_str += f" and added {added} to the timer! Thank you <3"
else:
@@ -252,7 +252,7 @@ class SubathonComponent(cmds.Component):
name = sub_payload.user.name
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():
contrib_str += f" and added {added} to the timer! Thank you <3"
else:
@@ -294,7 +294,7 @@ class SubathonComponent(cmds.Component):
added = f"{added_min} minutes"
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():
contrib_str += f" and added {added} to the timer! Thank you <3"
else:
@@ -337,7 +337,7 @@ class SubathonComponent(cmds.Component):
name = sub_payload.user.name
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():
contrib_str += f" and added {added} to the timer! Thank you <3"
else:
@@ -385,7 +385,7 @@ class SubathonComponent(cmds.Component):
duration = strfdelta(timedelta(seconds=secs))
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)
else:
@@ -432,7 +432,7 @@ class SubathonComponent(cmds.Component):
dur = strfdelta(timedelta(seconds=dursecs))
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:
await ctx.reply("No active subathon to stop.")