Fix bot agina

This commit is contained in:
eek7574 2022-12-18 14:30:25 +00:00
parent 362139633d
commit fd7fc9539d

View file

@ -228,7 +228,7 @@ class TimeTableCog(commands.Cog):
await self.update_timetable_message(ctx, date, no_prefix=True)
if random.randint(1, 10) == 1:
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))
@commands.slash_command(name="timetable")