diff --git a/cogs/commands/quotes.py b/cogs/commands/quotes.py index 5efa8aa..b54b2b8 100644 --- a/cogs/commands/quotes.py +++ b/cogs/commands/quotes.py @@ -390,7 +390,7 @@ async def on_raw_reaction_add(self, payload: discord.RawReactionActionEvent): quoted_message = await channel.fetch_message(payload.message_id) await self.quote_discord_user( - payload.member.mention, quoted_message, quoted_message + payload.member.mention, quoted_message, quoted_message, True ) async def quote_discord_user( @@ -398,6 +398,7 @@ async def quote_discord_user( requester: discord.Member, quoted_message: discord.Message, reply_to: discord.Message, + from_react = False ): """Modified version of original quote add, has more context and creates mention""" # Get mention for DB. Modified from MentionConverter @@ -425,8 +426,10 @@ async def quote_discord_user( result += "Quote already exists." else: result += MYSTERY_ERROR - - await reply_to.reply(result, mention_author=False) + + # Skip multiple clicks of quote react + if not (from_react and "Quote already exists." in result): + await reply_to.reply(result, mention_author=False) @quote.command() async def delete(self, ctx: Context, query: QuoteIDConverter):