Creating a filter

Creating chat filters

Filters are json files that carry specific information used to check each message. First create a text file and name it filter.json

filter.json
{
    {
        match: /bad word/i // Matches support both regex and plain text
        ignore_channels: ['662788187465236'] // Optional - array of channel ids that the filter will ignore
        action: ['warn','bad words'] // Thing to do when the match is satisfied
    }
}

There are many different actions that can be taken upon each match

With the filter.json file attached, run the command y!filter set

Last updated

Was this helpful?