2.0/Modules/bs kick

From AnopeWiki
Revision as of 20:59, 7 May 2014 by Azander (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Language

English

Service BotServ
Module bs_kick
Author Anope

Description

Configures bot kickers.

Note: access to this command is controlled by the level SET.

Commands

kick AMSG channel {ON|OFF} [tbb]
Sets the AMSG kicker on or off. When enabled, the bot will kick users who send the same message to multiple channels where BotServ bots are.
ttb is the number of times a user can be kicked before they get banned. Don't give ttb to disable the ban system once activated.
kick BADWORDS channel {ON|OFF} [tbb]
Sets the bad words kicker on or off. When enabled, this option tells the bot to kick users who say certain words on the channels. You can define bad words for your channel using the BADWORDS command. Type /msg BotServ HELP BADWORDS for more information.
ttb is the number of times a user can be kicked before it gets banned. Don't give ttb to disable the ban system once activated.
kick BOLDS channel {ON|OFF} [tbb]
Sets the bolds kicker on or off. When enabled, this option tells the bot to kick users who use bolds.
ttb is the number of times a user can be kicked before it gets banned. Don't give ttb to disable the ban system once activated.
kick CAPS channel {ON|OFF} [tbb [min [percent] ] ]
Sets the caps kicker on or off. When enabled, this option tells the bot to kick users who are talking in CAPS. The bot kicks only if there are at least min caps and they constitute at least percent% of the total text line (if not given, it defaults to 10 characters and 25%).
ttb is the number of times a user can be kicked before it gets banned. Don't give ttb to disablethe ban system once activated.
kick COLORS channel {ON|OFF} [tbb]
Sets the colors kicker on or off. When enabled, this option tells the bot to kick users who use colors.
ttb is the number of times a user can be kicked before it gets banned. Don't give ttb to disable the ban system once activated.
kick FLOOD channel {ON|OFF} [tbb [ln [secs] ] ]
Sets the flood kicker on or off. When enabled, this option tells the bot to kick users who are flooding the channel using at least ln lines in secs seconds (if not given, it defaults to 6 lines in 10 seconds).
ttb is the number of times a user can be kicked before it gets banned. Don't give ttb to disable the ban system once activated.
kick ITALICS channel {ON|OFF} [tbb]
Sets the italics kicker on or off. When enabled, this option tells the bot to kick users who use italics.
ttb is the number of times a user can be kicked before it gets banned. Don't give ttb to disable the ban system once activated.
kick REPEAT channel {ON|OFF} [tbb [num] ]
Sets the repeat kicker on or off. When enabled, this option tells the bot to kick users who are repeating themselves num times (if num is not given, it defaults to 3).
ttb is the number of times a user can be kicked before it gets banned. Don't give ttb to disable the ban system once activated.
kick REVERSES channel {ON|OFF} [tbb]
Sets the reverses kicker on or off. When enabled, this option tells the bot to kick users who use reverses.
ttb is the number of times a user can be kicked before it gets banned. Don't give ttb to disable the ban system once activated.
kick UNDERLINES channel {ON|OFF} [tbb]
Sets the underlines kicker on or off. When enabled, this option tells the bot to kick users who use underlines.
ttb is the number of times a user can be kicked before it gets banned. Don't give ttb to disable the ban system once activated.
kick DONTKICKOPS channel {ON|OFF}
kick DONTKICKVOICES channel {ON|OFF}

Examples

/msg BotServ KICK #myChannel REPEAT ON +1d 5

/msg BotServ KICK #mychannel REVERSES ON


Default Configuration

/*
 * bs_kick
 *
 * Provides the commands:
 *   botserv/kick - Dummy help wrapper for the KICK command.
 *   botserv/kick/amsg - Configures BotServ's AMSG kicker.
 *   botserv/kick/badwords - Configures BotServ's badwords kicker.
 *   botserv/kick/bolds - Configures BotServ's bold text kiceker.
 *   botserv/kick/caps - Configures BotServ's capital letters kicker.
 *   botserv/kick/colors - Configures BotServ's color kicker.
 *   botserv/kick/flood - Configures BotServ's flood kicker.
 *   botserv/kick/italics - Configures BotServ's italics kicker.
 *   botserv/kick/repeat - Configures BotServ's repeat kicker.
 *   botserv/kick/reverses - Configures BotServ's reverse kicker.
 *   botserv/kick/underlines - Configures BotServ's reverse kicker.
 *   botserv/set/dontkickops - Used for preventing BotServ from kicking channel operators.
 *   botserv/set/dontkickvoices - Used for preventing BotServ from kicking voices.
 *
 * Used for configuring what bots should kick for.
 */
module
{
        name = "bs_kick"
 
        /*
         * The amount of time that data for a user is valid in BotServ. If the data exceeds this time,
         * it is reset or deleted depending on the case. Do not set it too high, otherwise your
         * resources will be slightly affected.
         */
        keepdata = 10m
 
        /*
         * If set, the bots will use a kick reason that does not state the word when it is kicking.
         * This is especially useful if you have young people on your network.
         *
         * This directive is optional.
         */
        gentlebadwordreason = yes
}
command { service = "BotServ"; name = "KICK"; command = "botserv/kick"; }
command { service = "BotServ"; name = "KICK AMSG"; command = "botserv/kick/amsg"; }
command { service = "BotServ"; name = "KICK BADWORDS"; command = "botserv/kick/badwords"; }
command { service = "BotServ"; name = "KICK BOLDS"; command = "botserv/kick/bolds"; }
command { service = "BotServ"; name = "KICK CAPS"; command = "botserv/kick/caps"; }
command { service = "BotServ"; name = "KICK COLORS"; command = "botserv/kick/colors"; }
command { service = "BotServ"; name = "KICK FLOOD"; command = "botserv/kick/flood"; }
command { service = "BotServ"; name = "KICK ITALICS"; command = "botserv/kick/italics"; }
command { service = "BotServ"; name = "KICK REPEAT"; command = "botserv/kick/repeat"; }
command { service = "BotServ"; name = "KICK REVERSES"; command = "botserv/kick/reverses"; }
command { service = "BotServ"; name = "KICK UNDERLINES"; command = "botserv/kick/underlines"; }
 
command { service = "BotServ"; name = "SET DONTKICKOPS"; command = "botserv/set/dontkickops"; }
command { service = "BotServ"; name = "SET DONTKICKVOICES"; command = "botserv/set/dontkickvoices"; }