You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 28, 2023. It is now read-only.
Hello 👋 Thank you very much for raising an issue 🙌 The maintainers will get back to you soon for discussion over the issue! Thank you for your contributions. 🚀
If you would like to continue contributing to open source and would like to do it with an awesome inclusive community, you should join our Discord Server - we help and encourage each other to contribute to open source little and often 🤓 Any questions, let us know!
Hey, I have an idea to implement this. Let me know if I can work on it or is there a better way to do this,
constcsgo_scam="hello i leave from csgo and give all my inventory, the first 3 will get trade";constcsgo_res=csgo_scam.match(/csgo|trade|inventory/g);console.log(csgo_res);constban_requirements={csgo: 3,// [csgo, inventory, trade]discord1: 2,// [discord, nitro]discord2: 3,// [discord, nitro, steam]discord3: 3,// [discord, nitro, month]discord4: 3,// [referral, discord, nitro]};if(csgo_res.length===ban_requirements.csgo){// message.delete();// or// ban(user);console.log("delete message");}// same for other scams ...
Line 2 matches given string with the given words using regex and returns all the words that matched.
So the returned array's length is same as number of words we matched, then its a scam message.
Hey @genzyy 👋. I meant using regex for the steam scam links and not the actually message which would be sent along with that link. Most of the steam scam links are similar, while the scam message may vary.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is your feature request related to a problem? Please describe.
Use regex to prevent the nitro and steam scams, instead of hard coding the statements
Describe the solution you'd like
No response
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: