From bec3e957a7fa9f4bc0aa0eeaa461bc858fc7c743 Mon Sep 17 00:00:00 2001 From: Juni Date: Mon, 11 Apr 2022 09:59:14 -0400 Subject: [PATCH] author --- reactquote/reactquote.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/reactquote/reactquote.py b/reactquote/reactquote.py index 4e435fd..cd54c7f 100644 --- a/reactquote/reactquote.py +++ b/reactquote/reactquote.py @@ -11,8 +11,9 @@ class ReactQuote(commands.Cog): def _wrapQuote(self, msg): return msg - def _buildQuote(self): - quote = "Quoted text will be here\n- @Juni [(Jump)](https://discord.com/channels/898593470606889000/929701114641809438/963069688177360927)" + def _buildQuote(self, message:discord.Message): + + quote = "Quoted text will be here\n- <@{message.author.display_name}> [(Jump)]({message.jump_url})" timestamp = datetime.now() embed = discord.Embed(timestamp=timestamp) embed.add_field(name="#1", value=quote, inline=False) @@ -22,7 +23,7 @@ class ReactQuote(commands.Cog): async def quote(self, ctx: commands.Context): """Recall Random Quote""" # Your code will go here - await ctx.send(embed=self._buildQuote()) + await ctx.send(embed=self._buildQuote(ctx.message)) @commands.Cog.listener() async def on_raw_reaction_add(self, payload:discord.RawReactionActionEvent):