Tweak timer channel.
This commit is contained in:
@@ -28,9 +28,9 @@ class TimerChannel(Channel):
|
|||||||
# TODO: Properly this should be communityid
|
# TODO: Properly this should be communityid
|
||||||
# Which is retrieved via API call to the profiles module for the channel
|
# Which is retrieved via API call to the profiles module for the channel
|
||||||
# This should also be a different error so we can pass it back to the client.
|
# This should also be a different error so we can pass it back to the client.
|
||||||
if not event.get('channel', None):
|
if not event.get('channelid', None):
|
||||||
raise ValueError("Subtimer connection missing channel!")
|
raise ValueError("Subtimer connection missing channel!")
|
||||||
community = await self.cog.bot.profiles.profiles.get_community_twitch(event['channel'])
|
community = await self.cog.bot.profiles.profiles.get_community_twitch(event['channelid'])
|
||||||
if community is None:
|
if community is None:
|
||||||
raise ValueError('Requested channel is not registered. Add the bot first.')
|
raise ValueError('Requested channel is not registered. Add the bot first.')
|
||||||
|
|
||||||
@@ -413,7 +413,8 @@ class SubathonComponent(cmds.Component):
|
|||||||
score_time=timescore,
|
score_time=timescore,
|
||||||
timecap=timecap
|
timecap=timecap
|
||||||
)
|
)
|
||||||
await ctx.reply("Setup a new subathon! Use !subathon resume to get the timer running.")
|
timer_link = f"https://izashi.thewisewolf.dev/tracker/timer?channelid={ctx.channel.id}"
|
||||||
|
await ctx.reply(f"Setup a new subathon! Use !subathon resume to get the timer running. Your timer link: {timer_link}")
|
||||||
await self.channel.send_updates(cid)
|
await self.channel.send_updates(cid)
|
||||||
|
|
||||||
# subathon stop
|
# subathon stop
|
||||||
|
|||||||
Reference in New Issue
Block a user