That feels very complicated since I'm not familiar with regex.
What's the system ?
- Check if the received message with
MessageReceivedevent has a scam link - If so, ban the user that sent scam link
Current way
- A very big .txt file that contains lots of scam link domains
public static async Task<bool> ContainsScamLink(this SocketMessage message)
{
string[] scamLinks = await File.ReadAllLinesAsync("Scamlinks.txt"); //This may take some time to read the entire file
if (scamLinks.Any(scam => message.CleanContent.Contains(scam, StringComparison.OrdinalIgnoreCase))) //This may take some time to analyze
return true;
return false;
}```
## Possible other way
- Scam links are very similar to official links, so is regex a better way to spot scam links ?

