Compare commits

2 Commits

Author SHA1 Message Date
112387115f Slightly improved hardcoded messages 2025-04-29 01:04:50 +02:00
2e9ed41a2c Added Pycord speedups to requirements 2025-04-29 00:58:00 +02:00
5 changed files with 18 additions and 9 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):

View File

@@ -43,7 +43,9 @@ class CogGuess(Cog):
if user.current_event_id is None or user.current_stage_id is None:
# TODO Make a nice message
await ctx.respond("You have no ongoing events.")
await ctx.respond(
"You have no ongoing events. You can register for events using the `/register` command."
)
return
try:
@@ -51,9 +53,7 @@ class CogGuess(Cog):
stage: PycordEventStage = await self.bot.find_event_stage(user.current_stage_id)
except (InvalidId, RuntimeError):
# TODO Make a nice message
await ctx.respond(
"Your event could not be found. Please, report this issue to the event's management."
)
await ctx.respond("Your event could not be found. Please, contact the administrator.")
return
if ctx.channel_id != user.event_channels[str(event._id)]:
@@ -90,6 +90,7 @@ class CogGuess(Cog):
guild,
f"User **{ctx.author.display_name}** ({ctx.author.mention}) has completed the event",
)
return
next_stage: PycordEventStage = await self.bot.find_event_stage(next_stage_id)

View File

@@ -294,7 +294,7 @@ class CogStage(Cog):
await event_stage.purge(cache=self.bot.cache)
# TODO Make a nice message
await ctx.respond("Okay.")
await ctx.respond("Event stage has been deleted.")
def setup(bot: PycordBot) -> None:

View File

@@ -70,7 +70,7 @@ class CogUnregister(Cog):
# TODO Text channel must be locked and updated
await ctx.respond("Ok.")
await ctx.respond("You are no longer registered for this event.")
def setup(bot: PycordBot) -> None:

View File

@@ -1,6 +1,10 @@
aiodns~=3.2.0
apscheduler~=3.11.0
async_pymongo==0.1.11
brotlipy~=0.7.0
faust-cchardet~=2.1.19
libbot[speed,pycord,cache]==4.1.0
mongodb-migrations==1.3.1
msgspec~=0.19.0
pytz~=2025.1
typing_extensions>=4.11.0
typing_extensions>=4.11.cl0