Fix goalcheck.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user