mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-20 02:26:32 +01:00
Fix bot agina
This commit is contained in:
parent
362139633d
commit
fd7fc9539d
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ class TimeTableCog(commands.Cog):
|
||||||
await self.update_timetable_message(ctx, date, no_prefix=True)
|
await self.update_timetable_message(ctx, date, no_prefix=True)
|
||||||
if random.randint(1, 10) == 1:
|
if random.randint(1, 10) == 1:
|
||||||
end_date = datetime(2023, 7, 13, 0, 0, 0, tzinfo=timezone.utc)
|
end_date = datetime(2023, 7, 13, 0, 0, 0, tzinfo=timezone.utc)
|
||||||
days_left = (end_date - datetime.now()).days
|
days_left = (end_date - discord.utils.utcnow()).days
|
||||||
await ctx.respond("There are only {:,} days before the end of this academic year.".format(days_left))
|
await ctx.respond("There are only {:,} days before the end of this academic year.".format(days_left))
|
||||||
|
|
||||||
@commands.slash_command(name="timetable")
|
@commands.slash_command(name="timetable")
|
||||||
|
|
Loading…
Reference in a new issue