LDS-Gamers-Studios / icarus5

Custom bot for the LDS Gamers Community
MIT License
7 stars 5 forks source link

Icarus nuking news posts with discord invites #149

Closed Maldor closed 2 years ago

Maldor commented 2 years ago

With Icarus completely nuking any message with a discord invite (which includes discord events) from other community servers, it leaves a weird hole where the message itself isnt bad or goes to a bad server but because it includes an invite or event it gets removed and then the discord server notice appears. Community posts can't DM members and so this community post becomes lost. (See most recent example here: https://discord.com/channels/96335850576556032/876540480396079135/976940564454977586)

Proposal: Because Icarus is smart enough to detect if the user posting the invite is a bot, continue to remove the offending post but then repost it without the discord link with [Discord Link] added so that the original message is preserved and so that the contents of the post can still be read. This will essentially read like this:

Original post: Hey, I'm doing something fun in this server, come check it out discord.gg/ldsg Modified post: Hey, I'm doing something fun in this server, come check it out [Discord link] Icarus: It is difficult to know what will be in another Discord server at any given time. If you feel that this server is appropriate to share, please only do so in direct messages.

Doing so will continue to allow external communities of which we have a playerbase (or have set up community posts to come in from external servers) to hype their various events whilst protecting our members from potentially unsafe servers.

This behavior should not apply when a community post contains a auto-mute word, those should continue to be deleted.