info
How to use triggers and badwords to filter messages

To avoid misuse of the service, some safety mechanisms are in place. For a message to be shared, it needs to contain at least one trigger word. Additionally, no badwords may occur in the message. Therefore triggers are words that only appear in legitimate messages. Badwords on the other hand, are words that completely discard the message, even if the remaining message is legitimate. For example insults or spam words like "blockchain".

Example: For example say you want all messages to be distributed except messages with insult/spam words "fuck", "asshat", "blockchain" then you can add these words to the Badwords like so: image Note the dot in the Triggers section. It means that every message is being relayed except those in badwords. If you would remove it, no message would be relayed at all, so only change the Trigger section if you are sure what you do.

Now if a user sends a message including "asshat" the message will not be distributed. For example:

xyz is an asshat! This message will not be distributed. xyz is an verybigAsshat! This message will not be distributed. xyz is nice! This message will be distributed.

For experts only: We use python re module with re.search(pattern, string, flags=re.IGNORECASE) for both Triggers and Badwords. View Documentation.