Compare commits

...

2 Commits

Author SHA1 Message Date
03d50fbe92 Fix subathon string. 2025-07-28 14:11:02 +10:00
3cd243f3eb Fix goalcheck. 2025-07-28 14:10:14 +10:00

View File

@@ -136,7 +136,7 @@ class SubathonComponent(cmds.Component):
sender=self.bot.bot_id
)
# TODO: Websocket update
await self.goalcheck()
await self.goalcheck(active, bits_payload.broadcaster)
# Check goals
@cmds.Component.listener()
@@ -176,7 +176,7 @@ class SubathonComponent(cmds.Component):
)
# TODO: Websocket update
# Check goals
await self.goalcheck()
await self.goalcheck(active, sub_payload.broadcaster)
@cmds.Component.listener()
async def event_safe_subscription_gift(self, payload):
@@ -211,7 +211,7 @@ class SubathonComponent(cmds.Component):
)
# TODO: Websocket update
# Check goals
await self.goalcheck()
await self.goalcheck(active, gift_payload.broadcaster)
# end stream => Automatically pause the timer
@cmds.Component.listener()
@@ -248,7 +248,7 @@ class SubathonComponent(cmds.Component):
duration = strfdelta(timedelta(seconds=secs))
text = (
f"Subathon running for {duration}! {score} (equivalent) subscriptions recieved, {goals}, and {remaining} left on the timer"
f"Subathon running for {duration}! {score} (equivalent) subscriptions recieved, {goalstr}, and {remaining} left on the timer"
)
await ctx.reply(text)
else:
@@ -351,7 +351,7 @@ class SubathonComponent(cmds.Component):
await ctx.reply("No active subathon running!")
@group_goals.command(name='add')
async def cmd_add(self, ctx: cmds.Context, required: int, description: str):
async def cmd_add(self, ctx: cmds.Context, required: int, *, description: str):
if ctx.broadcaster or ctx.author.moderator:
community = await self.bot.community_fetch(twitchid=ctx.broadcaster.id, name=ctx.broadcaster.name)
cid = community.communityid