Compare commits
2 Commits
11b214b553
...
03d50fbe92
| Author | SHA1 | Date | |
|---|---|---|---|
| 03d50fbe92 | |||
| 3cd243f3eb |
@@ -136,7 +136,7 @@ class SubathonComponent(cmds.Component):
|
|||||||
sender=self.bot.bot_id
|
sender=self.bot.bot_id
|
||||||
)
|
)
|
||||||
# TODO: Websocket update
|
# TODO: Websocket update
|
||||||
await self.goalcheck()
|
await self.goalcheck(active, bits_payload.broadcaster)
|
||||||
# Check goals
|
# Check goals
|
||||||
|
|
||||||
@cmds.Component.listener()
|
@cmds.Component.listener()
|
||||||
@@ -176,7 +176,7 @@ class SubathonComponent(cmds.Component):
|
|||||||
)
|
)
|
||||||
# TODO: Websocket update
|
# TODO: Websocket update
|
||||||
# Check goals
|
# Check goals
|
||||||
await self.goalcheck()
|
await self.goalcheck(active, sub_payload.broadcaster)
|
||||||
|
|
||||||
@cmds.Component.listener()
|
@cmds.Component.listener()
|
||||||
async def event_safe_subscription_gift(self, payload):
|
async def event_safe_subscription_gift(self, payload):
|
||||||
@@ -211,7 +211,7 @@ class SubathonComponent(cmds.Component):
|
|||||||
)
|
)
|
||||||
# TODO: Websocket update
|
# TODO: Websocket update
|
||||||
# Check goals
|
# Check goals
|
||||||
await self.goalcheck()
|
await self.goalcheck(active, gift_payload.broadcaster)
|
||||||
|
|
||||||
# end stream => Automatically pause the timer
|
# end stream => Automatically pause the timer
|
||||||
@cmds.Component.listener()
|
@cmds.Component.listener()
|
||||||
@@ -248,7 +248,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, {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)
|
await ctx.reply(text)
|
||||||
else:
|
else:
|
||||||
@@ -351,7 +351,7 @@ class SubathonComponent(cmds.Component):
|
|||||||
await ctx.reply("No active subathon running!")
|
await ctx.reply("No active subathon running!")
|
||||||
|
|
||||||
@group_goals.command(name='add')
|
@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:
|
if ctx.broadcaster or ctx.author.moderator:
|
||||||
community = await self.bot.community_fetch(twitchid=ctx.broadcaster.id, name=ctx.broadcaster.name)
|
community = await self.bot.community_fetch(twitchid=ctx.broadcaster.id, name=ctx.broadcaster.name)
|
||||||
cid = community.communityid
|
cid = community.communityid
|
||||||
|
|||||||
Reference in New Issue
Block a user