I was planning not to create a topic in DevForum for only this, but I did it anyway.
I’ve created a chat filter to prevent fraud messages from appearing in your game, this chat filter is similar to the another chat filter found in DevForum, but this one adopts a much special design to avoid cases where you want to talk about something related to robux, and the system misunderstood that you are sending a fraud message.
Example: “I earned a lot of robux via commissions”
Most other filters’ result: “I earned a lot of ##### via ##########”
My filter’s result: “I earned a lot of robux via commissions”
Example 2: “I earned a lot of robux via fakelink.xd”
Most other filters’ result: Blocked
My filter’s result: Blocked
For those who want to look further into the design of my filter, here’s a short brief description of the design:
When there’s a message going through the chat system, my filter will react to it and scan for any malicious words in the wordlist in the module, and if there is, the system will continue looking for a link, and if there is, the filter will block the message from going through by replacing the whole message with something else that will not catch the user’s attention.
With this design, accuracy will be increased by a lot and you do not need to add new links into the filter, making the whole moderation process less labour-intensive. However, because of that, no matter what link it is, it will get blocked if malicious words and link are found.
Apart from that, another pro of this design is I don’t have to upload the wordlist in a server or git repository like GitHub, so, there’s no chance that the filter can be broken as no HTTP requests were made.
There’s really nothing to talk or explain about a filter, so I’ll just drop the GitHub repository to the source code here:
https://github.com/va1kio/roblox-assets/blob/master/src/chatFilter.lua
Simply copy the code into a ModuleScript and put it into ChatModules in Chat. Create a folder called ChatModules if you don’t have that folder in Chat.
Additional notes
As I’ve mentioned about the main drawback of the design system I’ve adopted for my filter, please do let me know if you have any solution to solve that issue without having to add every malicious link to the list or anything like that. Thank you.