mirror of https://github.com/stijndcl/didier
Fix naming & missing argument
parent
8fb990cea8
commit
d1d10ee853
|
@ -34,7 +34,7 @@ class Fun(commands.Cog):
|
||||||
return await ctx.reply(joke.joke, mention_author=False)
|
return await ctx.reply(joke.joke, mention_author=False)
|
||||||
|
|
||||||
@commands.group(name="Memegen", aliases=["Meme", "Memes"], invoke_without_command=True, case_insensitive=True)
|
@commands.group(name="Memegen", aliases=["Meme", "Memes"], invoke_without_command=True, case_insensitive=True)
|
||||||
async def memegen_ctx(self, ctx: commands.Context, meme_name: str, *, fields: str):
|
async def memegen_msg(self, ctx: commands.Context, meme_name: str, *, fields: str):
|
||||||
"""Command group for meme-related commands"""
|
"""Command group for meme-related commands"""
|
||||||
async with ctx.typing():
|
async with ctx.typing():
|
||||||
async with self.client.postgres_session as session:
|
async with self.client.postgres_session as session:
|
||||||
|
|
|
@ -177,8 +177,8 @@ class Owner(commands.Cog):
|
||||||
if meme is None:
|
if meme is None:
|
||||||
return await interaction.followup.send("A meme with this name (or id) already exists.")
|
return await interaction.followup.send("A meme with this name (or id) already exists.")
|
||||||
|
|
||||||
await interaction.followup.send(f"Added meme `{meme.meme_id}`.")
|
await interaction.followup.send(f"Added meme `{meme.meme_id}`.")
|
||||||
await self.client.database_caches.memes.invalidate()
|
await self.client.database_caches.memes.invalidate(session)
|
||||||
|
|
||||||
@commands.group(name="Edit", case_insensitive=True, invoke_without_command=False)
|
@commands.group(name="Edit", case_insensitive=True, invoke_without_command=False)
|
||||||
async def edit_msg(self, ctx: commands.Context):
|
async def edit_msg(self, ctx: commands.Context):
|
||||||
|
|
Loading…
Reference in New Issue