New inspirobot alias, fixed timezone
This commit is contained in:
parent
b9b2b5c8b8
commit
bd8cfa44d4
3 changed files with 7 additions and 4 deletions
|
@ -14,7 +14,7 @@ class Inspirobot(commands.Cog):
|
||||||
def __init__(self, client : discord.Client):
|
def __init__(self, client : discord.Client):
|
||||||
self.client = 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)
|
@commands.cooldown(1, 5)
|
||||||
async def inspirobot(self, ctx : commands.Context):
|
async def inspirobot(self, ctx : commands.Context):
|
||||||
image = inspirobot.get_inspirational_quote()
|
image = inspirobot.get_inspirational_quote()
|
||||||
|
@ -26,4 +26,4 @@ class Inspirobot(commands.Cog):
|
||||||
await ctx.send(embed=embed)
|
await ctx.send(embed=embed)
|
||||||
|
|
||||||
def setup(client : discord.Client):
|
def setup(client : discord.Client):
|
||||||
client.add_cog(Inspirobot(client))
|
client.add_cog(Inspirobot(client))
|
||||||
|
|
|
@ -35,7 +35,7 @@ class Schedule(commands.Cog):
|
||||||
@commands.cooldown(1, 3)
|
@commands.cooldown(1, 3)
|
||||||
async def schedule(self, ctx: commands.Context, *name: str):
|
async def schedule(self, ctx: commands.Context, *name: str):
|
||||||
date = ceil_dt(random_date(datetime.now(), datetime.now() + timedelta(days=7)), timedelta(minutes=15))
|
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:
|
if self.threads <= self.THREAD_LIMIT:
|
||||||
seconds = (date - datetime.now()).seconds
|
seconds = (date - datetime.now()).seconds
|
||||||
|
@ -48,4 +48,4 @@ class Schedule(commands.Cog):
|
||||||
|
|
||||||
|
|
||||||
def setup(client: discord.Client):
|
def setup(client: discord.Client):
|
||||||
client.add_cog(Schedule(client))
|
client.add_cog(Schedule(client))
|
||||||
|
|
3
screenlog.0
Normal file
3
screenlog.0
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[01;32mroot@h2864412[00m:[01;34m~/DeepBlue[00m# cd [K[K[Kscre[K[K[K[Kscreen -X
|
||||||
|
Please specify a command.
|
||||||
|
[01;32mroot@h2864412[00m:[01;34m~/DeepBlue[00m#
|
Loading…
Add table
Add a link
Reference in a new issue