Twentysix26 / x26-Cogs

General purpose cogs for Red V3
GNU General Public License v3.0
41 stars 30 forks source link

[Bug] Invite Filter & Warden Condition Action on Promos #57

Open EternalllZM opened 1 year ago

EternalllZM commented 1 year ago

Cog

Describe the bug When a user tries to post a Discord promo link (https://promos.discord.gg/7ASKkGRnEYmdjxEpAyjGEJNg for example), the bot treats this as a server invite and actions/rules on the user tied to discord.gg in general.

To Reproduce Steps to reproduce the behavior:

  1. Issue command 'N/A'
  2. Do this 'Setup and configure the invite filter module and/or create a rule that uses the condition message-contains-invite: true targeting the test rank'
  3. Do that 'Post the aforementioned link into chat'
  4. See error

Expected behavior It should ignore and treat it as a regular URL. You can workaround by ignoring it using the warden - if-not: condition in conjunction with a match for promo in an invite. However, this does not stop Invite Filter from performing invite behavior unless you fork and program this behavior in.

Screenshots If applicable, add screenshots to help explain your problem. image image