Sinuce

ExtraChat multi-line regex question

May 21st, 2015
358
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.05 KB | None | 0 0
  1. #EXTRACHAT'S EXAMPLE:
  2.     {
  3.         "regex": "n[^a]gg+(a|er|uh)", //A regex filter or a word
  4.         "action":{
  5.             "type": "KICK", //The action type as shown below
  6.             "cancel": "true", //To make not to show in chat
  7.             "alert": "%PLAYER% has been kicked for racism.", // The alert shown to the rest of the players, remove it to don't alert players
  8.             "kick": "You have been kicked for racism." //The kick message that will show to a player
  9.         }
  10.     },
  11.  
  12. #----------------
  13. #HOW TO USE MULTI-LINE REGEX? (EXAMPLE FROM MY BUNGEECHATFILTER CONFIG-YML) ->
  14.  swearfilter1:
  15.     regex:
  16.    #cunt
  17.     - (?i)(\bcunt\b
  18.     #fuck
  19.     - f+[^A-Za-z0-9\u00C0-\u00FF]*(u|ü|Ü|û|Û|ú|Ú|ù|Ù|å|Å|\*)+[^A-Za-z0-9\u00C0-\u00FF]*((c+[^A-Za-z0-9\u00C0-\u00FF]*k+[^A-Za-z0-9\u00C0-\u00FF]*)|(k+[^A-Za-z0-9\u00C0-\u00FF]*k+[^A-Za-z0-9\u00C0-\u00FF]*))
  20.     #whore
  21.     - \bwhore)
  22.     actions:
  23.       replace:
  24.      - '***'
  25.       ccommand: gtempmute {player} 3m Don't swear.
  26.       kick: '&cKicked for swearing. Muted for 3 minutes.'
Advertisement
Add Comment
Please, Sign In to add comment