bugfix: joint
This commit is contained in:
parent
454c2840f4
commit
cf688b88af
@ -1311,7 +1311,7 @@ class Misc(commands.Cog):
|
|||||||
|
|
||||||
if not recipient:
|
if not recipient:
|
||||||
recipient = authorDisplay.strip()
|
recipient = authorDisplay.strip()
|
||||||
recipient_normal: str = ctx.user.mention
|
recipient_normal: str = ctx.author.mention
|
||||||
else:
|
else:
|
||||||
recipient_normal = recipient
|
recipient_normal = recipient
|
||||||
if discord.utils.raw_mentions(recipient):
|
if discord.utils.raw_mentions(recipient):
|
||||||
@ -1333,11 +1333,11 @@ class Misc(commands.Cog):
|
|||||||
raise MiscException("Failed to get strain from db.")
|
raise MiscException("Failed to get strain from db.")
|
||||||
(choice_strain, choice_desc) = strain
|
(choice_strain, choice_desc) = strain
|
||||||
escaped_description = discord.utils.escape_markdown(choice_desc.strip())
|
escaped_description = discord.utils.escape_markdown(choice_desc.strip())
|
||||||
await ctx.send_followup(f"*hands **{recipient_normal}** a joint rolled up with some **{choice_strain}***", username="Joint Granter")
|
await ctx.respond(f"*hands **{recipient_normal}** a joint rolled up with some **{choice_strain}***")
|
||||||
embed: discord.Embed = discord.Embed(title=choice_strain,
|
embed: discord.Embed = discord.Embed(title=choice_strain,
|
||||||
description=f"*{escaped_description}*")
|
description=f"*{escaped_description}*")
|
||||||
await self.util.increment_counter("joints")
|
await self.util.increment_counter("joints")
|
||||||
return await ctx.send_followup(embed=embed, username="Joint Granter")
|
return await ctx.respond(embed=embed)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
return await ctx.respond(f"Failed: {str(e)}")
|
return await ctx.respond(f"Failed: {str(e)}")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user