Slightly improved hardcoded messages

This commit is contained in:
2025-04-29 01:04:50 +02:00
parent 2e9ed41a2c
commit 112387115f
4 changed files with 13 additions and 8 deletions

View File

@@ -199,7 +199,9 @@ class CogEvent(Cog):
start_date = start_date.replace(tzinfo=guild_timezone)
except ValueError:
# TODO Make a nice message
await ctx.respond("Could not parse the start date.")
await ctx.respond(
"Could not parse the start date. Please, make sure it is provided in `DD.MM.YYYY HH:MM` format."
)
return
try:
@@ -209,7 +211,9 @@ class CogEvent(Cog):
end_date = end_date.replace(tzinfo=guild_timezone)
except ValueError:
# TODO Make a nice message
await ctx.respond("Could not parse the end date.")
await ctx.respond(
"Could not parse the end date. Please, make sure it is provided in `DD.MM.YYYY HH:MM` format."
)
return
if not await validate_event_validity(ctx, name, start_date, end_date, guild_timezone):