fixing the memegen function to return the help method if you just run !meme

This commit is contained in:
Luke Robles 2022-06-02 09:53:47 -07:00
parent 8518256c42
commit 53117b5bcb

View File

@ -128,11 +128,14 @@ class Cheeky(commands.Cog):
import meme_gen
await ctx.message.delete()
await ctx.send(
embed=core_utils.generate_embed(
embed_url=meme_gen.parse_message(ctx.message.content)
try:
await ctx.send(
embed=core_utils.generate_embed(
embed_url=meme_gen.parse_message(ctx.message.content)
)
)
)
except discord.errors.HTTPException:
await ctx.send(meme_gen.get_meme_help())
@commands.command(name="define", aliases=["ud"])
async def define(self, ctx: commands.Context):