From 7acf7476a48eeeb9b6ac4eee2b213bd8a40a1b02 Mon Sep 17 00:00:00 2001 From: Conatum Date: Thu, 30 Dec 2021 22:39:23 +0200 Subject: [PATCH] (goals): Update limits. --- bot/modules/stats/goals.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bot/modules/stats/goals.py b/bot/modules/stats/goals.py index 68ee4897..39b8c254 100644 --- a/bot/modules/stats/goals.py +++ b/bot/modules/stats/goals.py @@ -14,7 +14,7 @@ from .data import weekly_goals, weekly_tasks, monthly_goals, monthly_tasks MAX_LENGTH = 200 -MAX_TASKS = 5 +MAX_TASKS = 10 class GoalType(Enum): @@ -161,6 +161,10 @@ async def goals_command(ctx, flags, goal_type): f"Please provide the number of tasks you want to complete this {name}!\n" f"For example, `{prefix}{ctx.alias} --tasks 300`" ) + if int(count) > 2048: + return await ctx.error_reply( + "Your task goal is too high!" + ) goal_row.task_goal = int(count) if ctx.args: