diff --git a/src/modules/pomodoro/timer.py b/src/modules/pomodoro/timer.py index ad94eb84..490c587a 100644 --- a/src/modules/pomodoro/timer.py +++ b/src/modules/pomodoro/timer.py @@ -235,14 +235,14 @@ class Timer: pattern = self.pattern name = self.base_name if stage is not None: - remaining = str(int(5 * math.ceil((stage.end - utc_now()).total_seconds() / 60))) + remaining = int(5 * math.ceil((stage.end - utc_now()).total_seconds() / 60)) stagestr = t(self.focus_name if stage.focused else self.break_name, locale=self.locale.value) else: - remaining = str(self.data.focus_length // 60) + remaining = self.data.focus_length // 60 stagestr = t(self.focus_name, locale=self.locale.value) mapping = { - '{remaining}': remaining, + '{remaining}': f"{remaining}m", '{stage}': stagestr, '{members}': str(len(self.members)), '{name}': name, diff --git a/src/modules/ranks/ui/overview.py b/src/modules/ranks/ui/overview.py index bac9c0e1..e841ab22 100644 --- a/src/modules/ranks/ui/overview.py +++ b/src/modules/ranks/ui/overview.py @@ -152,7 +152,7 @@ class RankOverviewUI(MessageUI): 'ui:rank_overview|menu:roles|error:above_caller', "You have insufficient permissions to assign {mention} as a rank role! " "You may only manage roles below your top role." - )) + )).format(mention=role.mention) embed = discord.Embed( title=t(_p( 'ui:rank_overview|menu:roles|error:above_caller|title', diff --git a/src/modules/statistics/cog.py b/src/modules/statistics/cog.py index 4225d597..490795cf 100644 --- a/src/modules/statistics/cog.py +++ b/src/modules/statistics/cog.py @@ -94,7 +94,7 @@ class StatsCog(LionCog): @appcmds.describe( season_start=_p( 'cmd:configure_statistics|param:season_start|desc', - "Time from which to start counting activity for rank badges and season leadeboards." + "Time from which to start counting activity for rank badges and season leaderboards. (YYYY-MM-DD)" ) ) @appcmds.default_permissions(manage_guild=True) diff --git a/src/modules/statistics/ui/weeklymonthly.py b/src/modules/statistics/ui/weeklymonthly.py index cd86dc73..e97c2d61 100644 --- a/src/modules/statistics/ui/weeklymonthly.py +++ b/src/modules/statistics/ui/weeklymonthly.py @@ -221,14 +221,14 @@ class GoalEditor(FastModal): t(_p( 'modal:goal_editor|field:text_goal|error:NAN', "The provided message goal `{input}` is not a number! Please try again." - )) + )).format(input=string) ) elif self.stat_page.stat is StatType.ANKI: raise UserInputError( t(_p( 'modal:goal_editor|field:anki_goal|error:NAN', "The provided card goal `{input}` is not a number! Please try again." - )) + )).format(input=string) ) else: result = int(string) diff --git a/src/settings/setting_types.py b/src/settings/setting_types.py index 3d516818..09f6e2a0 100644 --- a/src/settings/setting_types.py +++ b/src/settings/setting_types.py @@ -984,7 +984,7 @@ class TimestampSetting(InteractiveSetting[ParentID, str, dt.datetime]): raise UserInputError(t(_p( 'settype:timestamp|parse|error:invalid', "Could not parse `{provided}` as a timestamp. Please use `YYYY-MM-DD HH:MM` format." - ))) + )).format(provided=string)) return ts @classmethod