Limnoria-doc/use/plugins/channel.rst

391 lines
12 KiB
ReStructuredText
Raw Normal View History

2011-06-28 08:11:32 +02:00
.. _plugin-channel:
The Channel plugin
==================
2011-06-28 17:29:38 +02:00
Lobotomy
--------
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
.. _command-channel-lobotomy-list:
2011-06-28 08:11:32 +02:00
lobotomy list
^^^^^^^^^^^^^
Returns the channels in which this bot is lobotomized.
2011-06-28 17:29:38 +02:00
.. _command-channel-lobotomy-remove:
2011-06-28 08:11:32 +02:00
lobotomy remove [<channel>]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
If you have the #channel,op capability, this will unlobotomize the
bot, making it respond to requests made in the channel again.
*<channel>* is only necessary if the message isn't sent in the channel
itself.
2011-06-28 17:29:38 +02:00
.. _command-channel-lobotomy-add:
2011-06-28 08:11:32 +02:00
lobotomy add [<channel>]
^^^^^^^^^^^^^^^^^^^^^^^^
If you have the #channel,op capability, this will "lobotomize" the
bot, making it silent and unanswering to all requests made in the
channel. *<channel>* is only necessary if the message isn't sent in
the channel itself.
2011-06-28 17:29:38 +02:00
(Un)setting modes
-----------------
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
.. _command-channel-unmoderate:
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
unmoderate [<channel>]
^^^^^^^^^^^^^^^^^^^^^^
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
Sets -m on *<channel>*, making it so everyone can
send messages to the channel. *<channel>* is only necessary if the
message isn't sent in the channel itself.
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
.. _command-channel-devoice:
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
devoice [<channel>] [<nick> ...]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
If you have the #channel,op capability, this will remove voice from all
the nicks given. If no nicks are given, removes voice from the person
sending the message.
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
.. _command-channel-deop:
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
deop [<channel>] [<nick> ...]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
If you have the #channel,op capability, this will remove operator
privileges from all the nicks given. If no nicks are given, removes
operator privileges from the person sending the message.
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
.. _command-channel-limit:
2011-06-28 08:11:32 +02:00
limit [<channel>] [<limit>]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sets the channel limit to *<limit>*. If *<limit>* is 0, or isn't given,
removes the channel limit. *<channel>* is only necessary if the message
isn't sent in the channel itself.
2011-06-28 17:29:38 +02:00
.. _command-channel-moderate:
2011-06-28 08:11:32 +02:00
moderate [<channel>]
^^^^^^^^^^^^^^^^^^^^
Sets +m on *<channel>*, making it so only ops and voiced users can
send messages to the channel. *<channel>* is only necessary if the
message isn't sent in the channel itself.
2011-06-28 17:29:38 +02:00
.. _command-channel-unban:
2011-06-28 08:11:32 +02:00
unban [<channel>] [<hostmask>]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Unbans *<hostmask>* on *<channel>*. If *<hostmask>* is not given, unbans
any hostmask currently banned on *<channel>* that matches your current
hostmask. Especially useful for unbanning yourself when you get
unexpectedly (or accidentally) banned from the channel. *<channel>* is
only necessary if the message isn't sent in the channel itself.
2011-06-28 17:29:38 +02:00
.. _command-channel-dehalfop:
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
dehalfop [<channel>] [<nick> ...]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
If you have the #channel,op capability, this will remove half-operator
privileges from all the nicks given. If no nicks are given, removes
half-operator privileges from the person sending the message.
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
.. _command-channel-key:
key [<channel>] [<key>]
^^^^^^^^^^^^^^^^^^^^^^^
Sets the keyword in *<channel>* to *<key>*. If *<key>* is not given, removes
the keyword requirement to join *<channel>*. *<channel>* is only necessary
if the message isn't sent in the channel itself.
.. _command-channel-halfop:
halfop [<channel>] [<nick> ...]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
If you have the #channel,halfop capability, this will give all the
*<nick>*s you provide halfops. If you don't provide any *<nick>*s, this
will give you halfops. *<channel>* is only necessary if the message isn't
sent in the channel itself.
.. _command-channel-mode:
mode [<channel>] <mode> [<arg> ...]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sets the mode in *<channel>* to *<mode>*, sending the arguments given.
2011-06-28 08:11:32 +02:00
*<channel>* is only necessary if the message isn't sent in the channel
itself.
2011-06-28 17:29:38 +02:00
.. _command-channel-ban-list:
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
ban list [<channel>]
^^^^^^^^^^^^^^^^^^^^
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
If you have the #channel,op capability, this will show you the
current persistent bans on #channel.
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
.. _command-channel-ban-remove:
ban remove [<channel>] <hostmask>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
If you have the #channel,op capability, this will remove the
persistent ban on *<hostmask>*. *<channel>* is only necessary if the
message isn't sent in the channel itself.
.. _command-channel-ban-add:
ban add [<channel>] <nick|hostmask> [<expires>]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
If you have the #channel,op capability, this will effect a
persistent ban from interacting with the bot on the given
*<hostmask>* (or the current hostmask associated with *<nick>*. Other
plugins may enforce this ban by actually banning users with
matching hostmasks when they join. *<expires>* is an optional
argument specifying when (in "seconds from now") the ban should
expire; if none is given, the ban will never automatically expire.
*<channel>* is only necessary if the message isn't sent in the
channel itself.
.. _command-channel-voice:
voice [<channel>] [<nick> ...]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
If you have the #channel,voice capability, this will voice all the
*<nick>*s you provide. If you don't provide any *<nick>*s, this will
voice you. *<channel>* is only necessary if the message isn't sent in the
channel itself.
.. _command-channel-op:
op [<channel>] [<nick> ...]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
If you have the #channel,op capability, this will give all the *<nick>*s
you provide ops. If you don't provide any *<nick>*s, this will op you.
*<channel>* is only necessary if the message isn't sent in the channel
itself.
Inviting and kicking users
--------------------------
.. _command-channel-kick:
kick [<channel>] <nick>[, <nick>, ...] [<reason>]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Kicks *<nick>*(s) from *<channel>* for *<reason>*. If *<reason>* isn't given,
uses the nick of the person making the command as the reason.
*<channel>* is only necessary if the message isn't sent in the channel
itself.
.. _command-channel-invite:
2011-06-28 08:11:32 +02:00
invite [<channel>] <nick>
^^^^^^^^^^^^^^^^^^^^^^^^^
If you have the #channel,op capability, this will invite *<nick>*
to join *<channel>*. *<channel>* is only necessary if the message isn't
sent in the channel itself.
2011-06-28 17:29:38 +02:00
.. _command-channel-kban:
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
kban [<channel>] [--{exact,nick,user,host}] <nick> [<seconds>] [<reason>]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
If you have the #channel,op capability, this will kickban *<nick>* for
as many seconds as you specify, or else (if you specify 0 seconds or
don't specify a number of seconds) it will ban the person indefinitely.
*--exact* bans only the exact hostmask; *--nick* bans just the nick;
*--user* bans just the user, and *--host* bans just the host. You can
combine these options as you choose. *<reason>* is a reason to give for
the kick.
*<channel>* is only necessary if the message isn't sent in the channel
itself.
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
.. _command-channel-cycle:
cycle [<channel>]
^^^^^^^^^^^^^^^^^
If you have the #channel,op capability, this will cause the bot to
"cycle", or PART and then JOIN the channel. *<channel>* is only necessary
if the message isn't sent in the channel itself.
Utitilies
---------
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
.. _command-channel-nicks:
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
nicks [<channel>] [--count]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
Returns the nicks in *<channel>*. *<channel>* is only necessary if the
message isn't sent in the channel itself. Returns only the number of
nicks if *--count* option is provided.
.. _command-channel-alert:
2011-06-28 08:11:32 +02:00
alert [<channel>] <text>
^^^^^^^^^^^^^^^^^^^^^^^^
Sends *<text>* to all the users in *<channel>* who have the *<channel>*,op
capability.
2011-06-28 17:29:38 +02:00
.. _command-channel-disable:
2011-06-28 08:11:32 +02:00
disable [<channel>] [<plugin>] [<command>]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
If you have the #channel,op capability, this will disable the *<command>*
in *<channel>*. If *<plugin>* is provided, *<command>* will be disabled only
for that plugin. If only *<plugin>* is provided, all commands in the
given plugin will be disabled. *<channel>* is only necessary if the
message isn't sent in the channel itself.
2011-06-28 17:29:38 +02:00
Ignores
-------
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
.. _command-channel-ignore-list:
2011-06-28 08:11:32 +02:00
ignore list [<channel>]
^^^^^^^^^^^^^^^^^^^^^^^
Lists the hostmasks that the bot is ignoring on the given channel.
*<channel>* is only necessary if the message isn't sent in the
channel itself.
2011-06-28 17:29:38 +02:00
.. _command-channel-ignore-remove:
2011-06-28 08:11:32 +02:00
ignore remove [<channel>] <hostmask>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
If you have the #channel,op capability, this will remove the
persistent ignore on *<hostmask>* in the channel. *<channel>* is only
necessary if the message isn't sent in the channel itself.
2011-06-28 17:29:38 +02:00
.. _command-channel-ignore-add:
2011-06-28 08:11:32 +02:00
ignore add [<channel>] <nick|hostmask> [<expires>]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
If you have the #channel,op capability, this will set a persistent
ignore on *<hostmask>* or the hostmask currently
associated with *<nick>*. *<expires>* is an optional argument
specifying when (in "seconds from now") the ignore will expire; if
it isn't given, the ignore will never automatically expire.
*<channel>* is only necessary if the message isn't sent in the
channel itself.
2011-06-28 17:29:38 +02:00
Capabilities
------------
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
.. _command-channel-capability-set:
2011-06-28 08:11:32 +02:00
capability set [<channel>] <capability> [<capability> ...]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
If you have the #channel,op capability, this will add the channel
capability *<capability>* for all users in the channel. *<channel>* is
only necessary if the message isn't sent in the channel itself.
2011-06-28 17:29:38 +02:00
.. _command-channel-capability-setdefault:
2011-06-28 08:11:32 +02:00
capability setdefault [<channel>] {True|False}
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
If you have the #channel,op capability, this will set the default
response to non-power-related (that is, not {op, halfop, voice}
capabilities to be the value you give. *<channel>* is only necessary
if the message isn't sent in the channel itself.
2011-06-28 17:29:38 +02:00
.. _command-channel-capability-list:
2011-06-28 08:11:32 +02:00
capability list [<channel>]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
Returns the capabilities present on the *<channel>*. *<channel>* is
only necessary if the message isn't sent in the channel itself.
2011-06-28 17:29:38 +02:00
.. _command-channel-capability-remove:
2011-06-28 08:11:32 +02:00
capability remove [<channel>] <name|hostmask> <capability> [<capability> ...]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
If you have the #channel,op capability, this will take from the
user currently identified as *<name>* (or the user to whom *<hostmask>*
maps) the capability *<capability>* in the channel. *<channel>* is only
necessary if the message isn't sent in the channel itself.
2011-06-28 17:29:38 +02:00
.. _command-channel-capability-add:
2011-06-28 08:11:32 +02:00
capability add [<channel>] <nick|username> <capability> [<capability> ...]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
If you have the #channel,op capability, this will give the user
*<name>* (or the user to whom *<nick>* maps)
the capability *<capability>* in the channel. *<channel>* is only
necessary if the message isn't sent in the channel itself.
2011-06-28 17:29:38 +02:00
.. _command-channel-capability-unset:
2011-06-28 08:11:32 +02:00
capability unset [<channel>] <capability> [<capability> ...]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
If you have the #channel,op capability, this will unset the channel
capability *<capability>* so each user's specific capability or the
channel default capability will take precedence. *<channel>* is only
necessary if the message isn't sent in the channel itself.
2011-06-28 17:29:38 +02:00
.. _command-channel-enable:
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
enable [<channel>] [<plugin>] [<command>]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
If you have the #channel,op capability, this will enable the *<command>*
in *<channel>* if it has been disabled. If *<plugin>* is provided,
*<command>* will be enabled only for that plugin. If only *<plugin>* is
provided, all commands in the given plugin will be enabled. *<channel>*
is only necessary if the message isn't sent in the channel itself.
.. _plugin-channel-config:
Configuration
-------------
.. _supybot.plugins.Channel.alwaysRejoin:
supybot.plugins.Channel.alwaysRejoin
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Default value: True
Determines whether the bot will always try to rejoin a channel whenever it's kicked from the channel.
.. _supybot.plugins.Channel.public:
supybot.plugins.Channel.public
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Default value: True
Determines whether this plugin is publicly visible.