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

@ -14,7 +14,7 @@ class Inspirobot(commands.Cog):
def __init__(self, client : discord.Client):
self.client = client
@commands.command(name="inspirobot", description="Sends a randomly generated inspirational quote", usage="inspirobot", aliases=["inspiration", "inspiro"])
@commands.command(name="inspirobot", description="Sends a randomly generated inspirational quote", usage="inspirobot", aliases=["inspiration", "inspiro", "insp"])
@commands.cooldown(1, 5)
async def inspirobot(self, ctx : commands.Context):
image = inspirobot.get_inspirational_quote()
@ -26,4 +26,4 @@ class Inspirobot(commands.Cog):
await ctx.send(embed=embed)
def setup(client : discord.Client):
client.add_cog(Inspirobot(client))
client.add_cog(Inspirobot(client))

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))

3
screenlog.0 Normal file
View file

@ -0,0 +1,3 @@
root@h2864412:~/DeepBlue# cd screscreen -X
Please specify a command.
root@h2864412:~/DeepBlue#