Jump to content


[0.9.19.0.2] Chat filter (HATE BLOCKER) & antispam - HARD WAY for World of Toxicity


  • Please log in to reply
382 replies to this topic

Krzysztof_Chodak #1 Posted 24 February 2015 - 09:31 PM

    Warrant Officer

  • Player
  • 36175 battles
  • 929
  • [AZP] AZP
  • Member since:
    12-07-2012

There is already good mod for that: http://forum.worldof...?/topic/235204-

I have borrowed its spam protection mechanism so credits to Assassik for that

This one does all hard way (some levels up in the stack) so:

- filtered message does not appear in history

- players with low WN8 (xvm needed or global rating in other case) are filtered out from both messages and minimap commands

One can combine two mods if needed

I must say that with the supplied configuration I have quite silent battles :)

 

It does also checking garage messages/channels

- each new channel not from our contacts is being quarantined for garageChannelsQuarantineSeconds

- after that time if messages received match our offensive/spam expression - channel is closed and optionally we are notified (garageChannelsNotifyExit)

I am not sure how will it behave when quarantine period ends during the battle...

 

directory with all my mods (I put there my whole res_mods directory)

Attached Files

  • Attached File   0.9.19.0-20170531-chat_filter.zip   12.63K
  • Attached File   0.9.19.0.2-20170613-chat_filter.zip   12.86K

Edited by Krzysztof_Chodak, 13 June 2017 - 09:21 AM.


leeuniverse #2 Posted 24 February 2015 - 10:54 PM

    Second Lieutenant

  • Player
  • 52 battles
  • 1,136
  • Member since:
    10-21-2013

Hey Krzysztof......  Nice work.

 

Is there any way you could have implimented your improvement into the actual BattleMessenger Mod, since we already have it, since yours doesn't have a couple of settings yet that it has?

The "history" bug has been an issue for some time, so nice you were able to fix that.

 

Also, one thing I've been trying to get the mod author to do is to combine his mod with the "chat scroll" mod, since he uses the swf already for the mod.

I know your mod doesn't, so that would allow us I'm guessing to use that mod now?

So, the only thing missing from yours now is a few useful settings, like messageLifeTime, chatLength, duplicateCount, & playerCount.

 

Thoughts?



Krzysztof_Chodak #3 Posted 24 February 2015 - 11:59 PM

    Warrant Officer

  • Player
  • 36175 battles
  • 929
  • [AZP] AZP
  • Member since:
    12-07-2012

yes, merging the two was my first idea but for now i was lazy and done separate one

yes, no flash is needed so you can use whatever you want on that side

i would need to check messageLifeTime and chatLength

anti spam parameters are taken from assassik and hardcoded, not sure if anyone modifies those?



leeuniverse #4 Posted 25 February 2015 - 01:08 AM

    Second Lieutenant

  • Player
  • 52 battles
  • 1,136
  • Member since:
    10-21-2013

Ya, those 4 settings are the only ones I touch.....

Like, I like my messages to stay on screen a little longer, and I like to set the max # shown at one time, and of course I don't like people spamming the same message over and over, so I limit the duplicates and such.

Other than that, that's it...... save for the "bad word list" which you have already.

 

So, it might be easier for you to simply add those when you feel like it, and then we can start using the "scroll mod" also, and/or you can put it with your mod lol.

Then you will have made the better mod haa haa...... and we will feel bad for Assassik cause there will be no need for his mod anymore.......  lol

 

Unless of course he decides to add your script and finally impliment the chat scroll, which I don't see he ever plans on doing.



Krzysztof_Chodak #5 Posted 25 February 2015 - 11:30 AM

    Warrant Officer

  • Player
  • 36175 battles
  • 929
  • [AZP] AZP
  • Member since:
    12-07-2012

messageLifeTime and chatLength are flash-side only

where is the chat scroll mod?



Aslain #6 Posted 25 February 2015 - 11:33 AM

    Field Marshal

  • Beta Tester
  • 14599 battles
  • 10,070
  • Member since:
    07-20-2010

View PostKrzysztof_Chodak, on 25 February 2015 - 11:30 AM, said:

messageLifeTime and chatLength are flash-side only

where is the chat scroll mod?

 

Try this one: http://www.filedropper.com/showdownload.php/battlemessenger

Krzysztof_Chodak #7 Posted 25 February 2015 - 08:19 PM

    Warrant Officer

  • Player
  • 36175 battles
  • 929
  • [AZP] AZP
  • Member since:
    12-07-2012

View PostAslain, on 25 February 2015 - 11:33 AM, said:

 

i don't see any download link there? has it expired?

Kierrok #8 Posted 25 February 2015 - 08:39 PM

    Staff Sergeant

  • Player
  • 11523 battles
  • 468
  • Member since:
    03-31-2013
Fixed link.

Krzysztof_Chodak #9 Posted 25 February 2015 - 08:48 PM

    Warrant Officer

  • Player
  • 36175 battles
  • 929
  • [AZP] AZP
  • Member since:
    12-07-2012

thx for the link but please put some light on me why do we need this scroll mod? standard messenger has history as well with buttons to scroll it?

i also see that history length and message lifitime is configured using messenger.xml:

...

      <set>
        <name>    messageLifeCycle    </name>
        <items>
          <item>
            <name>    lifeTime    </name>
            <value>    10    </value>
          </item>
          <item>
            <name>alphaSpeed</name>
            <value>    3    </value>
          </item>
        </items>
      </set>

...

      <item>
        <name>numberOfMessagesInHistory</name>
        <value>    6    </value>
      </item>
      <item>
        <name>    alphaForLastMessages    </name>
        <value>    70    </value>
      </item>
      <item>
        <name>recoveredLatestMessages</name>
        <value>    80    </value>
      </item>
      <item>
        <name>lifeTimeRecoveredMessages</name>
        <value>    3    </value>
      </item>
      <set>

...

 

so it is enough to export it from gui.pkg and overwrite its values


Edited by Krzysztof_Chodak, 25 February 2015 - 08:55 PM.


Krzysztof_Chodak #10 Posted 25 February 2015 - 09:02 PM

    Warrant Officer

  • Player
  • 36175 battles
  • 929
  • [AZP] AZP
  • Member since:
    12-07-2012
actually it goes through python so i can overwrite those as well

leeuniverse #11 Posted 26 February 2015 - 01:26 AM

    Second Lieutenant

  • Player
  • 52 battles
  • 1,136
  • Member since:
    10-21-2013

View PostKrzysztof_Chodak, on 25 February 2015 - 12:48 PM, said:

thx for the link but please put some light on me why do we need this scroll mod? standard messenger has history as well with buttons to scroll it?

i also see that history length and message lifitime is configured using messenger.xml:

 

The scroll mod is good for two reasons.....

 

1. It allows you to go through the previous messages much easier, whereas the buttons are a pain to use.

 

2. It allows you to "copy" all the message text.  You can't copy the text with the current system.


Edited by leeuniverse, 26 February 2015 - 01:27 AM.


leeuniverse #12 Posted 03 May 2015 - 03:11 PM

    Second Lieutenant

  • Player
  • 52 battles
  • 1,136
  • Member since:
    10-21-2013

Hey Krzysztof_Chodak....

 

What's the word on this?

Combining yours and Assassik's together, and also adding the scroll swf, or at least the chat scroll only?

 

wot-shot.com/chat-scrolling/

 


Edited by leeuniverse, 03 May 2015 - 03:22 PM.


Krzysztof_Chodak #13 Posted 04 May 2015 - 06:14 PM

    Warrant Officer

  • Player
  • 36175 battles
  • 929
  • [AZP] AZP
  • Member since:
    12-07-2012
you could go with chat scroll + mine filter long ago

leeuniverse #14 Posted 04 May 2015 - 10:38 PM

    Second Lieutenant

  • Player
  • 52 battles
  • 1,136
  • Member since:
    10-21-2013

View PostKrzysztof_Chodak, on 04 May 2015 - 10:14 AM, said:

you could go with chat scroll + mine filter long ago

 

LOL true.... but remember, there were a couple of features from BM that we still needed in yours.

Although, maybe you mentioned they were "hardcoded", can't remember, cause I think I saw a couple looking at the Python.

But, haven't spent any time on it.

 

Maybe I will look at it closer, and go with yours.


Edited by leeuniverse, 04 May 2015 - 10:40 PM.


leeuniverse #15 Posted 04 May 2015 - 11:13 PM

    Second Lieutenant

  • Player
  • 52 battles
  • 1,136
  • Member since:
    10-21-2013

BTW, could you explain some things?

I've created a huge blocking list with BM, now I'll have to totally redue it per your method.

 

Block Quote

     "offensiveRegularExpression": "\\bnoob|\\bfuck|\\bfck|\\bidiot|\\buninstall|\\btetris|\\bl2p|\\bcancer|\\bfail|\\bstfu\\b|\\bfu\\b|\\bmor+on|\\bclick|\\bz?jeb|\\bretard|\\bkurw|\\bstupid|whore\\b|\\bbrain|\bpierdol",
    "spamRegularExpression": "\\bclan|\\brecru|\\bsearch|^gg$|\\bluck|\\bomg\\b|\\bklan|\\bgold",
    "minimalWN8": 1010,
    "exceptionRegularExpression": "\\bsry\\b|\\bsorry\\b|^thx$|^thanks$|\\bnp\\b|^[a-zA-Z][0-9]$",

 

1. Okay, so apparently we have to put "\\b" in front of every word and a "|" after every word.

2. Some spots have a "b|" only, what does that mean?

3. What does "^gg$" mean?

4. The first line has a "\b" at the end, what does that mean?

5. What does "bz?jeb" mean?

6. What does "\\bstupid|whore" mean?

 

Thanks



leeuniverse #16 Posted 05 May 2015 - 06:47 AM

    Second Lieutenant

  • Player
  • 52 battles
  • 1,136
  • Member since:
    10-21-2013

Ah, I see the "\b" at the end was just a typo..... it caused the last entry to not work.  Needed to be "\\b" like the others.

 

So ya Krzysztof.....

If you could add BattleMessengers "text duration" and also "text height", I think that's all we need off the top of my head to make your mod perfect.

Though, double check his config to make sure that's it's that's useful, forget offhand.

 

Anyway, here's my Bad Word list in alphabetacle order.... feel free to add it to the mod.

 

Block Quote

 "\\bl2p|\\bahole|\\baids|\\bamklk|\\banal|\\bandskota|\\banvs|\\barskhlokh|\\barse|\\bashole|\\bass|\\basshole|\\baylr|\\bbasstard|\\bbassterd|\\bbastard|\\bbasterd|\\bbich|\\bbitch|\\bblatkh|\\bbltkh|\\bblovjob|\\bblovjob|\\bblowjob|\\bbofflng|\\bbololas|\\bbollokk|\\bboob|\\bbrain|\\bbreasts|\\bbvketa|\\bbutthole|\\bbvtthole|\\bbvttvlpe|\\bbuttwipe|bbuttwhip|\\bbuttwhipe|\\bcancer|\\bclan|\\bclick|\\bclicker|\\bcock|\\bcunt|\\bdamn|\\bdick|\\bdumb|\\bdyke|\\bhitler|\\bidiot|\\bignor|\\bkokk|\\bkabron|\\bkavk|\\bkasso|\\bkhraa|\\bkhvj|\\bklpa|\\bkllt|\\bknts|\\bkrap|\\bkvm|\\bkvnt|\\bdildo|\\bdlkk|\\bdlke|\\bdlldo|\\bdllldo|\\bdlrsa|\\bdomlnatrl|\\bdvpa|\\bdyke|\\bdslvka|\\bejakkvlat|\\bejaculate|\\bejakvlat|\\bekrem|\\bekto|\\benkvler|\\benema|\\bfaen|\\bfag|\\bfail|\\bfalg|\\bfankvlo|\\bfanny|\\bfart|\\bfkvk|\\bfekes|\\bfeg|\\bFelkher|\\bfilth|\\bflkken|\\bfltt|\\bfllkker|\\bforeskln|\\bfotse|\\bfuk|\\bfu|\\bfck|\\bfuck|\\bfuhrer|\\bfvk|\\bfvkk|\\bgay|\\bgook|\\bgtfo|\\bgvlena|\\bheil|\\bhelvete|\\ho|\\hoe|\\bhomo|\\bidiot|\\bimbecil|\\bjack|\\bjakkoff|\\bjerk|\\bjew|\\bjude|\\bkvnt|\\blesb|\\bllpshlt|\\bmamhoon|\\bmasokhlst|\\bmasoklst|\\bsterba|\\bstvrba|\\bstrba|\\bmerd|\\bmlbvn|\\bmofo|\\bmonkey|\\bmonklelgh|\\bmoron|\\bmovllevop|\\bmvle|\\bmvlkkv|\\bmvskhl|\\bnlgr|\\bnastt|\\bnasl|\\bnasls|\\bnepesavrlo|\\bnig|\\bnlgg|\\bnlgvr|\\bnllg|\\bnllgr|\\bn00b|\\bnoob|\\bnoshit|\\bns|\\bnvtsakk|\\bomfg|\\borafls|\\borgas|\\borlf|\\borospv|\\bpakkl|\\bpakl|\\bpaky|\\bpaska|\\bpathe|\\bpekker|\\bpenas|\\bpenis|\\bpenls|\\bpenvs|\\bpenvvs|\\bpig|\\bplerdol|\\bplllv|\\bplmmel|\\bplmpls|\\bplss|\\bplsda|\\bpolak|\\bpolakk|\\bpolak|\\bpoonanl|\\bpoontsee|\\bpoo|\\bporn|\\bprlk|\\bpreteen|\\bprick|\\bpuss|\\bpussy|\\bpvla|\\bpvle|\\bpvss|\\bpvta|\\bpvto|\\bpvvke|\\bqahbeh|\\bqveef|\\bqveer|\\bravtenberg|\\brecru|\\brekktvm|\\brektvm|\\bretard|\\bsadlst|\\bscrub|\\bsearch|\\bsemen|\\bsex|\\bsharmvt|\\bshemale|\\bshlpal|\\bshit|\\bshlt|\\bsht|\\bshut|\\bskank|\\bskhaffer|\\bskhelss|\\bskhlampe|\\bskhlong|\\bskhmvkk|\\bskrev|\\bskrevlng|\\bskrotvm|\\bskank|\\bskrlbs|\\bskvrvysyn|\\bslut|\\bslvt|\\bsmvt|\\bsphenkter|\\bsplk|\\bsplerdalaj|\\bsplooge|\\bstfu|\\bstup|\\bsu|\\bsuck|\\bsvka|\\btard|\\bteets|\\btees|\\btestlk|\\btetris|\\btlt|\\btvrd|\\btvat|\\btwat|\\binstall|\\buninstal|\\buninstall|\\bvagina|\\bvaglna|\\bvlttv|\\bvvllva|\\bvvlva|\\bvank|\\bvetbakk|\\bvhor|\\bvhoar|\\bvlkhser|\\bvop|\\bxrated|\\byed|\\bsabovrah|\\bwhore|\\bwtf",

 

 


Edited by leeuniverse, 05 May 2015 - 08:31 AM.


Krzysztof_Chodak #17 Posted 05 May 2015 - 08:32 PM

    Warrant Officer

  • Player
  • 36175 battles
  • 929
  • [AZP] AZP
  • Member since:
    12-07-2012

Lee,

1. mod has already some params like: "maxLinesCount,direction,lifeTime,alphaSpeed,showUniqueOnly", try playing with it

2. filtering is done using regular expressions

\b (\ needs to be escaped with \) stands for begining of the word

\bpuss|\\bpussy first one is enough

it is a long and powerful subject; more info here: https://docs.python....library/re.html



leeuniverse #18 Posted 06 May 2015 - 12:10 AM

    Second Lieutenant

  • Player
  • 52 battles
  • 1,136
  • Member since:
    10-21-2013

View PostKrzysztof_Chodak, on 05 May 2015 - 12:32 PM, said:

Lee,

1. mod has already some params like: "maxLinesCount,direction,lifeTime,alphaSpeed,showUniqueOnly", try playing with it

 

Uh.....  Did you upload the wrong files, because there are not ANY of those params in the config or the python file in the archive from your site......???

 

Thanks much guy.

 

BTW, I think some words have made the filter too strong, because we can't type some sentences, even though we have no bad words in them.

Don't know what's happening, any thoughts?

 

Looking over the expressions now.....  Do I need to add "$" to the end of every word (instead of "|" ) so the filter only filters the exact word, or do I add "\|" or "[|]" instead?

Not sure here?  The expression being used at the end seems to be causing ANY text in the word to be blocked, like your puss and pussy example, saying I don't need to add the second one, pussy?


Edited by leeuniverse, 06 May 2015 - 12:46 AM.


Krzysztof_Chodak #19 Posted 06 May 2015 - 09:08 AM

    Warrant Officer

  • Player
  • 36175 battles
  • 929
  • [AZP] AZP
  • Member since:
    12-07-2012

new file uploaded

you will need to read about regexp - i very much recommend it as it is powerful

| separates phrases

$ matches end of message so ^gg$ matches a full message consisting of gg only



leeuniverse #20 Posted 06 May 2015 - 03:48 PM

    Second Lieutenant

  • Player
  • 52 battles
  • 1,136
  • Member since:
    10-21-2013

Hey Krzysztof.....

 

Thanks for the new upload.

 

As to the expressions, you need to forgive me.  I don't have a "programmers" brain, and this is just too much of me, I don't understand.  I have a general idea, but don't know how to make it work right.

All I want to do, is block the entire sentence that has a "specific" word in it..... (but not parts of the word, which seems how the original code is working)

Could you show me an example how I would make that code?

 

Also, what does this section refer to?  "gui/*.xml defaults": [[3, "up", 1.5, 1.5, true], [5, "up", 12.0, 3.0, false], [-1, "up", 12.0, 3.0, false]],

I understand the 3 individual .xml file referrences at the bottom of the config file, but this section I don't understand why there are 3 sections and what they refer to?


Edited by leeuniverse, 06 May 2015 - 03:50 PM.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users