From bd8cfa44d4e184f866a599708ff9513d87a195ff Mon Sep 17 00:00:00 2001 From: root Date: Sat, 11 Jan 2020 21:43:38 +0100 Subject: [PATCH] New inspirobot alias, fixed timezone --- cogs/api/inspirobot.py | 4 ++-- cogs/fun/schedule.py | 4 ++-- screenlog.0 | 3 +++ 3 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 screenlog.0 diff --git a/cogs/api/inspirobot.py b/cogs/api/inspirobot.py index 36d2428..89e73ed 100644 --- a/cogs/api/inspirobot.py +++ b/cogs/api/inspirobot.py @@ -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)) \ No newline at end of file + client.add_cog(Inspirobot(client)) diff --git a/cogs/fun/schedule.py b/cogs/fun/schedule.py index 039ce6f..cbc0808 100644 --- a/cogs/fun/schedule.py +++ b/cogs/fun/schedule.py @@ -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)) \ No newline at end of file + client.add_cog(Schedule(client)) diff --git a/screenlog.0 b/screenlog.0 new file mode 100644 index 0000000..439cc6c --- /dev/null +++ b/screenlog.0 @@ -0,0 +1,3 @@ +root@h2864412:~/DeepBlue# cd screscreen -X +Please specify a command. +root@h2864412:~/DeepBlue# \ No newline at end of file