PyDrocsid / cogs

The official cog library used by PyDrocsid bots
GNU General Public License v3.0
13 stars 5 forks source link

Discord invite link redirects will not be deleted #5

Closed MarcelCoding closed 3 years ago

MarcelCoding commented 3 years ago

Describe the bug Discord invite link redirects will not be deleted.

To Reproduce Post:

Expected behavior DELETE THE MESSAGE!

Screenshots grafik grafik

Your Configuration (please complete the following information): Ask Discord user with the ID "251344185783746560"

florian4f6c6 commented 3 years ago

image

MarcelCoding commented 3 years ago

@FlorianJSa see PyDrocsid/cogs#4

felixevers commented 3 years ago

Redirects are difficult to detect because they require javascript interpretation (worst case). So, for example, we would have to use a headless chrome to detect this as well. This would have a very bad cost-benefit ratio.

MarcelCoding commented 3 years ago

Redirects are difficult to detect because they require javascript interpretation (worst case). So, for example, we would have to use a headless chrome to detect this as well. This would have a very bad cost-benefit ratio.

But you can check for http redirects and meta tags in the html. I know, javascript would be still possible but better than nothing.