2021-04-05 17:29:49 +02:00
.. _plugin-BadWords:
Documentation for the BadWords plugin for Supybot
=================================================
Purpose
-------
2021-12-04 02:50:28 +01:00
2021-04-05 17:29:49 +02:00
Filters bad words on outgoing messages from the bot, so the bot can't be made
to say bad words.
As an additional capability, it can (optionally) kick users who
use such words from channels that have that capability enabled.
Usage
-----
2021-12-04 02:50:28 +01:00
2021-04-05 17:29:49 +02:00
Maintains a list of words that the bot is not allowed to say.
Can also be used to kick people that say these words, if the bot
has op.
2021-04-05 22:56:40 +02:00
.. _commands-BadWords:
2021-04-05 17:29:49 +02:00
Commands
--------
2021-12-04 02:50:28 +01:00
2021-04-17 20:09:33 +02:00
.. _command-badwords-add:
2021-04-05 22:56:40 +02:00
2021-04-05 17:29:49 +02:00
add <word> [<word> ...]
Adds all <word>s to the list of words being censored.
2021-04-17 20:09:33 +02:00
.. _command-badwords-list:
2021-04-05 22:56:40 +02:00
2021-04-05 17:29:49 +02:00
list takes no arguments
Returns the list of words being censored.
2021-04-17 20:09:33 +02:00
.. _command-badwords-remove:
2021-04-05 22:56:40 +02:00
2021-04-05 17:29:49 +02:00
remove <word> [<word> ...]
Removes <word>s from the list of words being censored.
2021-04-17 20:09:33 +02:00
.. _conf-BadWords:
2021-04-05 17:29:49 +02:00
Configuration
-------------
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.BadWords.kick:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.BadWords.kick
2021-12-04 03:19:12 +01:00
This config variable defaults to "False", is network-specific, and is channel-specific.
2021-04-05 17:29:49 +02:00
Determines whether the bot will kick people with a warning when they use bad words.
2021-04-22 00:29:15 +02:00
.. _conf-supybot.plugins.BadWords.kick.message:
2021-04-17 20:09:33 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.BadWords.kick.message
2021-12-04 03:19:12 +01:00
This config variable defaults to "You have been kicked for using a word prohibited in the presence of this bot. Please use more appropriate language in the future.", is network-specific, and is channel-specific.
2021-04-05 17:29:49 +02:00
Determines the kick message used by the bot when kicking users for saying bad words.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.BadWords.nastyChars:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.BadWords.nastyChars
2021-12-04 03:19:12 +01:00
This config variable defaults to "!@#&", is not network-specific, and is not channel-specific.
2021-04-05 17:29:49 +02:00
Determines what characters will replace bad words; a chunk of these characters matching the size of the replaced bad word will be used to replace the bad words you've configured.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.BadWords.phrases:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.BadWords.phrases
2021-12-04 03:19:12 +01:00
This config variable defaults to " ", is not network-specific, and is not channel-specific.
2021-04-05 17:29:49 +02:00
Comma-separated groups of words that are considered to be 'bad'.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.BadWords.public:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.BadWords.public
2021-12-04 03:19:12 +01:00
This config variable defaults to "True", is not network-specific, and is not channel-specific.
2021-04-05 17:29:49 +02:00
Determines whether this plugin is publicly visible.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.BadWords.replaceMethod:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.BadWords.replaceMethod
2021-12-04 03:19:12 +01:00
This config variable defaults to "nastyCharacters", is not network-specific, and is not channel-specific.
2021-04-05 17:29:49 +02:00
Determines the manner in which bad words will be replaced. 'nastyCharacters' (the default) will replace a bad word with the same number of 'nasty characters' (like those used in comic books; configurable by supybot.plugins.BadWords.nastyChars). 'simple' will replace a bad word with a simple strings (regardless of the length of the bad word); this string is configurable via supybot.plugins.BadWords.simpleReplacement. Valid strings: simple and nastyCharacters.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.BadWords.requireWordBoundaries:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.BadWords.requireWordBoundaries
2021-12-04 03:19:12 +01:00
This config variable defaults to "False", is network-specific, and is channel-specific.
2021-04-05 17:29:49 +02:00
Determines whether the bot will require bad words to be independent words, or whether it will censor them within other words. For instance, if 'darn' is a bad word, then if this is true, 'darn' will be censored, but 'darnit' will not. You probably want this to be false. After changing this setting, the BadWords regexp needs to be regenerated by adding/removing a word to the list, or reloading the plugin.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.BadWords.simpleReplacement:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.BadWords.simpleReplacement
2021-12-04 03:19:12 +01:00
This config variable defaults to "[CENSORED]", is not network-specific, and is not channel-specific.
2021-04-05 17:29:49 +02:00
Determines what word will replace bad words if the replacement method is 'simple'.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.BadWords.stripFormatting:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.BadWords.stripFormatting
2021-12-04 03:19:12 +01:00
This config variable defaults to "True", is not network-specific, and is not channel-specific.
2021-04-05 17:29:49 +02:00
Determines whether the bot will strip formatting characters from messages before it checks them for bad words. If this is False, it will be relatively trivial to circumvent this plugin's filtering. If it's True, however, it will interact poorly with other plugins that do coloring or bolding of text.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.BadWords.words:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.BadWords.words
2021-12-04 03:19:12 +01:00
This config variable defaults to " ", is not network-specific, and is not channel-specific.
2021-04-05 17:29:49 +02:00
Determines what words are considered to be 'bad' so the bot won't say them.