promotional bannermobile promotional banner
premium banner
Tiny addon to hide those boosting messages from the lfg channel

Description

This is a tiny addon to filter out the boosting spam from the lfg channel.

Has a couple of slash commands:

/hb clearlog -- clear the log
/hb log      -- toggle logging
/hb filter   -- toggle filtering
/hb add channel <channelName> -- add channelName to the filtered channels
/hb add filter pattern[ ; pattern2... , exception ; exception2...] -- add pattern[s] with optional exceptions to the filters
/hb add pack packname -- adds a predefined filter pack (see available packs with list pack)
/hb remove channel <channelName> -- remove channelName from the filtered channels
/hb remove filter "pattern" -- remove "pattern" from the filters. You can use the pattern IDs from list filter as well.
/hb remove pack packname -- remove predefined filter pack (see available packs with list pack)
/hb reset channel -- reset the filtered channels to the defaults
/hb reset filter  -- reset the filters to the defaults
/hb list channel  -- list the filtered
/hb list filter   -- list the filters
/hb list pack     -- list the available predefined filter packs
/hb help [add] -- print this help, or print add help
 
Added some filter packs to easily add/remove what you want to filter
use /hb list pack to list what they are
will add more packs in the future, especially if someone requests something
 
Keep in mind, that if you plan to remove multiple filters, after each removal the filter indices shift!
 
   
Add filter usage:
you can use a single pattern, or multiple patterns,
or single or multiple patterns with single or multiple exceptions

patterns and exceptions are separated with ,
multiple patterns and exceptions are separated with ;
example 1:
/hb add filter test1   -- adds a single pattern

example 2:
/hb add filter test1 ; test2  -- adds a multi patterns, where both test1 and test2 has to match
> ; < separates individual patterns test1 and test 2
     
example 3:
/hb add filter test1 , exception1 ; exception2 -- adds a single match pattern with multi exception patterns
all patterns must match, and none of the exceptions may match to filter
> , < separates pattern(s) and exception(s)

patterns must follow Lua pattern matching rules:
%s - white space
%a - alphabetical character
%d - digit character
.  - any character match
^  - constrains match to start at the beginning of the string (^ must be the first character of the pattern)
$  - constrains match to end at the end of the string ($ must be the last character of the pattern)
+  - a character followed by + means at least 1 of that character
*  - a character followed by * means zero or more of that character
 

Currently it's only designed to work on English realms, like the Anniversary realms, but if you want other languages added, just drop a comment with the channel name you want to filter, phrases to filter, and your locale name (like enUS)