From 3cd243f3ebca84b0c7ecff6c31c53e6935460888 Mon Sep 17 00:00:00 2001 From: Interitio Date: Mon, 28 Jul 2025 14:10:14 +1000 Subject: [PATCH] Fix goalcheck. --- src/modules/subathons/component.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/subathons/component.py b/src/modules/subathons/component.py index c475720..fa41320 100644 --- a/src/modules/subathons/component.py +++ b/src/modules/subathons/component.py @@ -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() @@ -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