Add ChatFilter and ChatLogs in BombSquad Server!

Hello There,
In case you ever wanted to block some abusive words on your server  or even wanted ChatLogs to store Chats on your server for later use( or to look what people talk behind you), Here's something I have for you.


Follow the steps to install the mod on your server:-
Note:- You need to have Latest Server file 1.4.150 or above.
Update Server Files from here

Adding ChatFilter in BombSquad Server

Step 1:

Download bsChatFilter.zip - Click Here

Step 2:

Extract the zip file using any application, it'll look like this



Step 3:

You can config your ChatFilter using ChatFilterConfig.py



blacklist :- are words which would be filtered(will not be shown in chat if used)

kickSpammer :- When set to "yes" will kick the player who used blacklisted words

blockChats :- in case you want peace on your server turned this to "yes" and it'll not allow anyone to talk in the chat.

credits :- hmmm....guess who made this?? It's me!

Step 4:

Upload the files ChatFilter.py and ChatFilterConfig.py in your Server's script folder.




Step 6(Important):

open bsUI.py of your script folder and add import ChatFilter at the end* of the file(not in the beginning)


Step 7:

You're done, restart the server and if you followed each step properly then it'll work something like this.



Now,

Viewing ChatLogs of BombSquad Server


Go to your server folder and in bscfg/mods folder you'll see two files created
<YourServerFolder>/bscfg/mods



Chats <CurrentDate>.txt will be the chats of the player(will be created automatically everyday)



spammerID.txt will contain the players' ID who used blacklisted words and what they messaged at what time

Note:- In Case the date and time printed is wrong check this - How to correct timezone in ubuntu server?

Yup! That's it!
In case you want to suggest some additional feature for this mod drop a comment down below.
Also Follow the blog in Case you want to stay updated!


Check Youtube Video From Here

In case you're having trouble in downloading file Check Here

Comments

Post a Comment

Popular posts from this blog

How to Unlock BombSquad PRO for free? UnlockPro.py!

How to add Text on Punch in BombSquad Server?

"Something" BombSquad Mod |Part 2|(Adding Chat Command to server)