pavelmaca / WoT-BattleMessenger

WoT mod: BattleMessenger - filters & antispam
7 stars 3 forks source link

Platoon request antispam #5

Open Sunshine40 opened 10 years ago

Sunshine40 commented 10 years ago

I don't know how it goes with other servers, but on WoT CN (hosted by wot.kongzhong.com), spamming of platoon request is extremely annoying. A mod that can filter platoon requests would be appreciated.

How I'd like the mod to work:

  1. Custom words filter to block platoon requests.
  2. Block any platoon request with a message longer than x characters.
  3. Friends (in the "friend list" of the account) are auto-whitelisted. (This has lower priority since a friend hardly ever needs to send a long message along with a platoon request).

BTW, it would be even better if in-garage chat messages could be filtered. I believe over 95% of spamming on WoT CN would be blocked by using a single keyword "prize" (in Chinese). (There's still 1 in 1000 people that would believe a pop-up message saying "You've won (some kind of) lottery". Frauds spam everyone repeatedly hunting for those silly/naive guys, making everyone disgusted with their spam messages on WoT CN)

Is this feature possible to get implemented? Could it be done in the near future? Please let me know. Thanks in advance!

pavelmaca commented 10 years ago

1 - You can block messages from platoon if you set

"ignore": {
 "squad": false

If you playing in platoon, isn't simpler to tell them to stop spamming your chat?

2 - Should be easy to implement... will think about it. 3 - Not possible for now. Maybe later, when this mod will be fully integrate to XVM. It would required some Python coding.

Not sure how garage chat works. Possibly not be implemented.

Sunshine40 commented 10 years ago

If you playing in platoon, isn't simpler to tell them to stop spamming your chat? When I say "platoon requests", I'm referring to the pop up messages on the bottom right corner when you are in garage (the messages that invites you into a garage).

To make the situation clearer: Frauds on WoT CN constantsly invites everyone into their platoons/companies, with a message saying "you've won a lottery / special prize, please pay the tax in advance to get your prize (which never exists)". Of course, these guys never actually want you to platoon with them. "Platoon/Company" is only used by them so that a spamming message pops up on the bottom-right corner of your garage. On the other hand, one that truly wants to platoon with you hardly ever send a long message along with the platoon request. So in this case it's easy to distinguish the spamming from regular platoon requests.

And yes, I know it is possible to block anyone's platoon request (invitation) other than requests from those on my friend list, by changing the settings. But the situation is I do want people who're not on my friend list to be able to send me platoon invitations. Ironically, even those who had never platooned with me before wouldn't send a long LONG message along with the platoon invitation.

So the filter logic is easy to design. It's just that I don't know how mods interact with the behavior of the client. I'm now learning python and if no such mod emerge in the near future, I may start to work on it myself.

Sunshine40 commented 10 years ago

If you playing in platoon, isn't simpler to tell them to stop spamming your chat?

When I say "platoon requests", I'm referring to the pop up messages on the bottom right corner when you are in garage (the messages that invites you into a platoon).

Pardon me for the mistake, I'm no native speaker of English so the mistake looks rather funny. IE7 is the browser I'm currently using so the "edit" button doesn't function normally.