Move timer url to config
This commit is contained in:
3
example-config/subathon.conf
Normal file
3
example-config/subathon.conf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
[SUBATHON]
|
||||||
|
timer_url = https://izashi.thewisewolf.dev/tracker/timer
|
||||||
|
|
||||||
@@ -435,8 +435,8 @@ class SubathonComponent(cmds.Component):
|
|||||||
score_time=timescore,
|
score_time=timescore,
|
||||||
timecap=timecap
|
timecap=timecap
|
||||||
)
|
)
|
||||||
# TODO: Add this to config not hardcode
|
base_timer_url = self.bot.config.subathon['timer_url']
|
||||||
timer_link = f"https://izashi.thewisewolf.dev/tracker/timer?channelid={ctx.channel.id}"
|
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 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)
|
await self.channel.send_updates(cid)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user