(timer): Channel template changes.

This commit is contained in:
2022-01-11 17:51:21 +02:00
parent 4cd4fab68f
commit 271ecfffa4
2 changed files with 7 additions and 7 deletions

View File

@@ -129,13 +129,13 @@ class Timer:
Current name for the voice channel
"""
stage = self.current_stage
name_format = self.data.channel_name or "{remaining} -- {name}"
name_format = self.data.channel_name or "{remaining} {stage} -- {name}"
return name_format.replace(
'{remaining}', "{}m left".format(
'{remaining}', "{}m".format(
int(5 * math.ceil((stage.end - utc_now()).total_seconds() / 300)),
)
).replace(
'{stage}', stage.name
'{stage}', stage.name.lower()
).replace(
'{members}', str(len(self.channel.members))
).replace(