StealthBot.net: Shout Handler - StealthBot.net

Jump to content

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

Shout Handler Like koy, with more features

#1 User is offline   AwaKening Icon

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

Posted February 21, 2010 - 12:30 AM

Name: ShoutHandler
Author: AwaKening
Version: 1.1.5

Purpose: Similar to kickonyell built in command, but with a lot more options

Commands:
shouthandler <on/off>
shoutlength <length>
shoutpercent <1-100>
shoutpunishment <response>
shoutwarning <response>
shoutcount <number>

<i>Note that these commands are just direct links to set the following settings. See notes below.</i>

Settings:
Active
Boolean Value to indicate whether the script is active (Y/N)
Default = Y

MinLength
Messages need to be at least this length to be checked for Abuse
Default = 3

Percent
Messages containing this percent of CAPS or higher trigger punishment (1-100)
Default = 100

Punishment
Type of command issued when CAPS detected. %u for Username
Default = /kick %u Stop Shouting!

Safelist
Ignore users that are safelisted? Y/N
Default = N

SafeAccess
Ignore users with this access level or higher, or you can set as a Flag
Default = 100

WarnMessage
The message a user will get as a warning if WarnCount is greater than 0
Default = %u, (%w) Please stop shouting.

WarnCount
How many warnings will be given before punishment
Deafult = 1 (0 to disable warning

WarnTime
Minutes - How often a warn will drop off per user (This setting cannot be changed via command)
Default = 10

Additional Notes:
If you're updating from 1.0.0, then take notice that punishment and message have now been combined.
%w can be used to replace warnings in warnmessage and punishment
%u can be used to replace username in warnmessage and punishment

Changes:
' CHANGELOGS
'
' 1.1.5
'    - Warnings and Punishment can now call to other scripted commands
' 1.1.4
'    - Improved warndecay accuracy
' 1.1.3
'    - %w can now be used in warnings and punishments to indicate (warns/allowed)
' 1.1.2
'    - Minimum length is now checked after non-alpha characters are removed
' 1.1.1
'    - Fixed an error with /shoutwarning from last update
' 1.1.0
'    - Script will now warn users x times before using punishment within a timelimit
'    - Added setting WarnMessage
'    - Added setting WarnCount
'    - Added setting WarnTime (Must change in scripts.ini, no command)
'    - Added command /shoutcount <number>
'    - Added command /shoutwarning <message>
'    - Fixed an error on load introduced in last update
'    - Fixed an error in GetDBEntry from last update
' 1.0.2
'    - Added setting Safelist
'    - Added setting SafeAccess
'    - Added function ShoutSetting
' 1.0.1
'    - Removed shoutmessage command and setting
'    - Punishment will handle the whole thing now instead by using %u in your punishment
'    - Added command /shoutwarning <phrase>



Download attachment below, or copy/paste code in spoiler
Spoiler

Attached File(s)


This post has been edited by AwaKening: August 28, 2010 - 09:59 PM
Reason for edit:: Script Update


#2 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted February 21, 2010 - 01:18 AM

It's not gonna kick people for saying " LOL " will it?

#3 User is offline   AwaKening Icon

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

Posted February 21, 2010 - 04:48 PM

Yep, it will.

If LCase(letter) = UCase(letter) Then
'// subtract one from Len(Text)


Updated to version 1.0.1 to combine punishment and message into 1 setting

#4 User is offline   aka- Icon

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

Posted February 24, 2010 - 03:27 AM

What about adding safelist ppl and clan members, to be safelisted to this?

#5 User is offline   AwaKening Icon

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

Posted February 24, 2010 - 04:21 AM

Good thought. I'll put it in tomorrow.

#6 User is offline   aka- Icon

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

Posted February 24, 2010 - 04:23 AM

View PostAwaKening, on 24 February 2010 - 04:21 AM, said:

Good thought. I'll put it in tomorrow.


ok cool.

#7 User is offline   AwaKening Icon

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

Posted February 24, 2010 - 05:03 AM

Updated to 1.0.2

Additional settings added for Safelist and SafeAccess.
I may be making another update eventually to allow for warning messages before punishment.

#8 User is offline   aka- Icon

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

Posted February 24, 2010 - 03:37 PM

Quote

I may be making another update eventually to allow for warning messages before punishment.

was thinking of that too!!! ha that would be nice.

#9 User is offline   AwaKening Icon

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

Posted February 24, 2010 - 07:38 PM

Updated to add Warnings and more settings/commands. Read changelog.

#10 User is offline   AwaKening Icon

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

Posted March 25, 2010 - 04:40 AM

Updated.

Minimum Length is now checked after non-alpha characters are removed. So...

MinimumLength = 3
Percent = 100

Quote

O-:<

Before, that would have kicked because it is 4 characters, and then 3 non-alpha characters were removed which made it 100% Caps.

Now it will only show as 1 character long, thus not meeting the minimum length req.

#11 User is offline   AwaKening Icon

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

Posted August 04, 2010 - 04:48 PM

Update 1.1.3 to allow %w in your warn and punishment messages

Update 1.1.4 to improve warndecay

#12 User is offline   DaveTheBat Icon

  • Leader of VFR
  • PipPipPip
  • Group: Members
  • Posts: 152
  • Joined: September-28 09

Posted August 05, 2010 - 10:40 AM

I'm not sure but I cant find Koy script but it kicks if you write caps messages with the reason: Yelling.
And it seems to override ShoutHandler.

I set the percentage to 100 and 5 as the length to check for.
And it doesn't respond to LOL and neither to "F*CK YOU" but it kicks when you write longer messages like "AMsOPDKAIOSJFOAIJGKLADJFIOJ" but it's not with the warnings or with the reason already in the script.

I reloaded scripts and config just in case.

OK. It's kinda working now. Now I just need to disable the Kick on Yell thingy that I dont have but is apparently kicking for yelling.
Seems to have been able to disable it now!

Working it seems! Awesome cake. +1 if I could.

This post has been edited by DaveTheBat: August 05, 2010 - 10:55 AM

ClanVFRBot: Posted Image

#13 User is offline   AwaKening Icon

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

Posted August 05, 2010 - 05:23 PM

Lol, glad you figured it all out.

#14 User is offline   DaveTheBat Icon

  • Leader of VFR
  • PipPipPip
  • Group: Members
  • Posts: 152
  • Joined: September-28 09

Posted August 05, 2010 - 08:42 PM

Yeah no idea what went wrong there lol.

Awesome script btw.
ClanVFRBot: Posted Image

#15 User is offline   smkyros Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 39
  • Joined: December-13 09

Posted August 28, 2010 - 08:08 PM

How about some timeban compatibility?

#16 User is offline   AwaKening Icon

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

Posted August 28, 2010 - 10:01 PM

View Postsmkyros, on 28 August 2010 - 02:08 PM, said:

How about some timeban compatibility?


Done (v1.1.5)

You'll need to have the timeban script. Just use the timeban command as your punishment or warning. Will work with either.

#17 User is offline   smkyros Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 39
  • Joined: December-13 09

Posted September 04, 2010 - 05:39 AM

Sweet. Thanks. Yeah I do have the timeban script because I use it for the antispam as well.

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