nakayoshi / quote

Quote is a Discord bot that allows you to quote messages in a better way
https://top.gg/bot/678185722473349120
GNU Affero General Public License v3.0
6 stars 3 forks source link

Regex for messages containing @here/@everyone ? #5

Open Lustris opened 4 years ago

Lustris commented 4 years ago

One big issues with webhooks is that they can mention @everyone and there's no current way to disable it. This can be done by quoting a message with additional content.

neet commented 4 years ago

What do you mean by "additional content"? The bot quotes messages using embeds instead of copying the content directly which means mentions will not actually send notifications 🤔

Ref: image

Lustris commented 4 years ago

12_29_20img

neet commented 4 years ago

@Lustris Thanks for the explanation. Indeed we don't have any way to restrict an usage of @everyone / @here via webhook.

I honestly would like to respect the original post rather than modifying the content though it might cause this problem. Checking if the bot itself have a permission to use @everyone before re-posting the additional content through webhook may help resolving this issue.

I'm gonna continue to seek for the solution and keep you posted🙏

Lustris commented 4 years ago

Thank you!! I'll be waiting for the solution! I thought of 2 methods while I was wondering if there was a permission check for the bot.

  1. Having a setting to post quotes as a bot instead of a webhook.
  2. Ignoring the quote if message content contains @here, @everyone.