New inspirobot alias, fixed timezone

This commit is contained in:
root 2020-01-11 21:43:38 +01:00
parent b9b2b5c8b8
commit bd8cfa44d4
3 changed files with 7 additions and 4 deletions

View file

@ -35,7 +35,7 @@ class Schedule(commands.Cog):
@commands.cooldown(1, 3)
async def schedule(self, ctx: commands.Context, *name: str):
date = ceil_dt(random_date(datetime.now(), datetime.now() + timedelta(days=7)), timedelta(minutes=15))
await ctx.send(f"I scheduled \"{' '.join(name)}\" for **{date.strftime('%d.%m.%Y %H:%M GMT')}**")
await ctx.send(f"I scheduled \"{' '.join(name)}\" for **{date.strftime('%d.%m.%Y %H:%M CET')}**")
if self.threads <= self.THREAD_LIMIT:
seconds = (date - datetime.now()).seconds
@ -48,4 +48,4 @@ class Schedule(commands.Cog):
def setup(client: discord.Client):
client.add_cog(Schedule(client))
client.add_cog(Schedule(client))