Move timer url to config

This commit is contained in:
2025-09-02 22:12:43 +10:00
parent a5dd5ce6ad
commit 899f5e7292
2 changed files with 5 additions and 2 deletions

View File

@@ -0,0 +1,3 @@
[SUBATHON]
timer_url = https://izashi.thewisewolf.dev/tracker/timer

View File

@@ -435,8 +435,8 @@ class SubathonComponent(cmds.Component):
score_time=timescore,
timecap=timecap
)
# TODO: Add this to config not hardcode
timer_link = f"https://izashi.thewisewolf.dev/tracker/timer?channelid={ctx.channel.id}"
base_timer_url = self.bot.config.subathon['timer_url']
timer_link = f"{base_timer_url}?channelid={ctx.channel.id}"
await ctx.reply(f"Setup your {name}! Use !subathon resume to get the timer running. Your timer link: {timer_link}")
await self.channel.send_updates(cid)