SocksTheWolf / AntiScamBot

A Discord bot that shares ban lists of scammers across multiple Discord servers
https://scamguard.app/
MIT License
6 stars 3 forks source link

Make command to ban any discord ids mention in thread OP post #8

Closed SocksTheWolf closed 1 year ago

SocksTheWolf commented 1 year ago

This would, via a command, scan the thread for a discord id (in the title or body of the post) and then get it ready for a scam ban. This would be easy to implement, and be helpful for mobile users.

To get the thread title: Check the channel type, if it's a typeof Thread, then you can just use the name property and it will give you the title in plain text.

To get the first post, we would have to read the message history.

SocksTheWolf commented 1 year ago

This would require that all titles of posts are the discord id, which is not always the case. We may need to add message scanning in that scenario

SocksTheWolf commented 1 year ago

Closing this, we've not seen any necessity to do so.