From 0934ee3af4b19c765fda7bf1700f0a02f303c79f Mon Sep 17 00:00:00 2001 From: Interitio Date: Tue, 2 Sep 2025 09:17:00 +1000 Subject: [PATCH] Tweak timer channel. --- subathon/component.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/subathon/component.py b/subathon/component.py index 46bfc80..6249717 100644 --- a/subathon/component.py +++ b/subathon/component.py @@ -28,9 +28,9 @@ class TimerChannel(Channel): # TODO: Properly this should be communityid # 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. - if not event.get('channel', None): + if not event.get('channelid', None): 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: raise ValueError('Requested channel is not registered. Add the bot first.') @@ -413,7 +413,8 @@ class SubathonComponent(cmds.Component): score_time=timescore, 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) # subathon stop