StealthBot.net: CSS (Command Spam Squelch) - StealthBot.net

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

CSS (Command Spam Squelch) conversion of plugin

#1 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted September 23, 2009 - 04:24 AM

Here's the completed conversion of my old css plugin with a few more optional settings now. Remember to delete css.plug from your plugin folder if you have it. Might also be called sss.plug.

CSS

Author: AwaKening
Version: 1.1 Revision 20100705

Purpose:
Monitors for trigger overusage by default, or a full command and access check if you change a setting for it.
Abusers are squelched for x seconds, and/or kicked/banned/timebanned

Commands:
None

Settings:
(All settings can be found in scripts.ini)

punishment
squelch, ban, timeban, or kick (how to punish offenders)
Default = squelch

sensitivity
1-10, 10 being the most sensitive
Default = 7

sqTime
How long to squelch/timeban offenders (seconds)
Default = 120

output
Only applies if punishment=squelch: 0=NoDisplay, 1=Talk, 2=Emote, 3=Whisper
Default = 1

immunity
Flag or Access level for users immune to punishment
Default = 70

doCQ
Clear queue when abuse is detected
Default = NO

commandOnly
Will only punish users if a valid command was issued rather than just checking for trigger usage
Not recommended if you're using old plugins because they won't be detected
Default = NO

Notes:
- All settings including sensitivity can be changed in your scripts.ini file.
- Changes take effect immediately after saving. No need to reload.

(New)
- Any case except for kick, we are going to squelch the user also (this way they can't abuse whispered commands)
- For regular bans (not timeban), the user will never be unignored until they are manually unbanned by someone


Attached File(s)

  • Attached File  css.txt (9.34K)
    Number of downloads: 403


#2 User is offline   FiftyToo Icon

  • StealthBot Developer
  • Icon
  • Group: Administrators
  • Posts: 276
  • Joined: July-31 09

Posted September 23, 2009 - 04:35 AM

I think you should be using ObserveScript(vbNullString). This will cause your script's Event_Command to fire for internal commands. The demo script has an example. Much more elegant than your approach. Now if only this was documented....

52

#3 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted September 23, 2009 - 05:36 AM

Once I read and figure out how that function works, I'll update it.

Does passing it a null string make it observe internal commands? Do I have to loop through and observe for each script also, or does that cover them as well?

Nevermind, I did a little testing and found the answer.

The attachment has been updated to use ObserveScript now.

#4 User is offline   Dinko Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 38
  • Joined: October-12 09

Posted December 05, 2009 - 04:12 PM

I don't understand how should I import this one in my stealthbot and to start it. I've put in plug folder, restarted the bot and got a popup window asking me if I want to convert the plugin. Clicked yes, wrote cs as a prefix but when the bot loaded I got this error in the line 104 and 20.

#5 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted December 05, 2009 - 04:28 PM

It's not a plugin. Delete it from plugins folder and recopy and paste it to your scripts folder.

#6 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted July 05, 2010 - 11:12 PM

Update 1.1.20100705

Added compatibility for boolean settings to accept yes, no, true, false, etc..
Added option for different punishments (ban, kick, timeban, squelch)

In all cases, except for kick, the user will still be squelched to prevent whispered command abuse.
You DO NOT need the timeban script as this implements its own timebanning method, if you choose to use timeban.
Timebans will use the same setting for time that the squelch timer uses.
The setting is in seconds, but the displayed message to users will show fractions of minutes.

#7 User is offline   T3X0 Icon

  • Full Member
  • PipPipPip
  • Group: Members
  • Posts: 498
  • Joined: June-27 10

Posted September 26, 2010 - 01:56 PM

Quote

All settings can be found in scripts.ini)

.. i can't find it in the scripts.ini - i somehow forgot :blink:
*blackout*
- found x)

This post has been edited by art: September 26, 2010 - 02:03 PM


#8 User is offline   aka- Icon

  • member
  • PipPipPip
  • Group: Members
  • Posts: 106
  • Joined: October-07 09

Posted August 23, 2011 - 03:35 AM

mine not squelching ppl that abuse commands in whisper... i also went on a diff acc and tryed it myself and it doesnt....
in the channel when i abuse the commands it squelches, but in whisper it doesnt. do i put "1, 3" on the output ? or just 3? i wont it to squelch in the channl and in whispers
...

#9 User is offline   T3X0 Icon

  • Full Member
  • PipPipPip
  • Group: Members
  • Posts: 498
  • Joined: June-27 10

Posted August 23, 2011 - 01:45 PM

View Postaka-, on August 23, 2011 - 03:35 AM, said:

mine not squelching ppl that abuse commands in whisper... i also went on a diff acc and tryed it myself and it doesnt....
in the channel when i abuse the commands it squelches, but in whisper it doesnt. do i put "1, 3" on the output ? or just 3? i wont it to squelch in the channl and in whispers
...

If you would read his post again, you will see the numbers and the "mode" doesn't have anything to do with what you actually want.

The numbers will only change the output.

Quote

output
Only applies if punishment=squelch: 0=NoDisplay, 1=Talk, 2=Emote, 3=Whisper
Default = 1


I installed the script for a friend and it still works. Take a look at the scripts.ini and what all the things are doing.
You are doing something wrong.

This post has been edited by aRtY: August 23, 2011 - 01:46 PM


#10 User is offline   aka- Icon

  • member
  • PipPipPip
  • Group: Members
  • Posts: 106
  • Joined: October-07 09

Posted August 24, 2011 - 03:10 AM

View PostaRtY, on August 23, 2011 - 01:45 PM, said:

If you would read his post again, you will see the numbers and the "mode" doesn't have anything to do with what you actually want.

The numbers will only change the output.


I installed the script for a friend and it still works. Take a look at the scripts.ini and what all the things are doing.
You are doing something wrong.




well i thought 1 was just for "talk" and 3 was for "whisper". i didnt know, ill just redl it and see if that fixes it.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users