2021-04-05 17:29:49 +02:00
.. _plugin-Relay:
Documentation for the Relay plugin for Supybot
==============================================
Purpose
-------
2021-12-04 02:50:28 +01:00
2021-04-05 17:29:49 +02:00
Handles relaying between networks.
Usage
-----
2021-12-04 02:50:28 +01:00
2021-04-05 17:29:49 +02:00
This plugin allows you to setup a relay between networks.
Note that you must tell the bot to join the channel you wish to relay on
all networks with the `` join `` command or
`` network command <network> join <channel> ``
or to join the channel on all networks `` network cmdall join <channel> `` .
There are several advanced alternatives to this plugin, available as
third-party plugins. You can check them out at
https://limnoria.net/plugins.xhtml#messaging
2021-04-05 22:56:40 +02:00
.. _commands-Relay:
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-relay-join:
2021-04-05 22:56:40 +02:00
2021-04-05 17:29:49 +02:00
join [<channel> ]
Starts relaying between the channel <channel> on all networks. If on a network the bot isn't in <channel>, it'll join. This commands is required even if the bot is in the channel on both networks; it won't relay between those channels unless it's told to join both channels. If <channel> is not given, starts relaying on the channel the message was sent in.
2021-04-17 20:09:33 +02:00
.. _command-relay-nicks:
2021-04-05 22:56:40 +02:00
2021-04-05 17:29:49 +02:00
nicks [<channel> ]
Returns the nicks of the people in the channel on the various networks the bot is connected to. <channel> is only necessary if the message isn't sent on the channel itself.
2021-04-17 20:09:33 +02:00
.. _command-relay-part:
2021-04-05 22:56:40 +02:00
2021-04-05 17:29:49 +02:00
part <channel>
Ceases relaying between the channel <channel> on all networks. The bot will part from the channel on all networks in which it is on the channel.
2021-04-17 20:09:33 +02:00
.. _conf-Relay:
2021-04-05 17:29:49 +02:00
Configuration
-------------
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.Relay.channels:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.Relay.channels
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 which channels the bot will relay in.
2021-04-22 00:29:15 +02:00
.. _conf-supybot.plugins.Relay.channels.joinOnAllNetworks:
2021-04-17 20:09:33 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.Relay.channels.joinOnAllNetworks
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 always join the channel(s) it relays when connecting to any network.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.Relay.color:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.Relay.color
2021-12-04 03:19:12 +01:00
This config variable defaults to "True", is network-specific, and is channel-specific.
2021-04-05 17:29:49 +02:00
Determines whether the bot will color relayed PRIVMSGs so as to make the messages easier to read.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.Relay.hostmasks:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.Relay.hostmasks
2021-12-04 03:19:12 +01:00
This config variable defaults to "True", is network-specific, and is channel-specific.
2021-04-05 17:29:49 +02:00
Determines whether the bot will relay the hostmask of the person joining or parting the channel when they join or part.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.Relay.ignores:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.Relay.ignores
2021-12-04 03:19:12 +01:00
This config variable defaults to " ", is network-specific, and is channel-specific.
2021-04-05 17:29:49 +02:00
Determines what hostmasks will not be relayed on a channel.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.Relay.includeNetwork:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.Relay.includeNetwork
2021-12-04 03:19:12 +01:00
This config variable defaults to "True", is network-specific, and is channel-specific.
2021-04-05 17:29:49 +02:00
Determines whether the bot will include the network in relayed PRIVMSGs; if you're only relaying between two networks, it's somewhat redundant, and you may wish to save the space.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.Relay.noticeNonPrivmsgs:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.Relay.noticeNonPrivmsgs
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 used NOTICEs rather than PRIVMSGs for non-PRIVMSG relay messages (i.e., joins, parts, nicks, quits, modes, etc.)
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.Relay.public:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.Relay.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.Relay.punishOtherRelayBots:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.Relay.punishOtherRelayBots
2021-12-04 03:19:12 +01:00
This config variable defaults to "True", is network-specific, and is channel-specific.
2021-04-05 17:29:49 +02:00
Determines whether the bot will detect other bots relaying and respond by kickbanning them.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.Relay.topicSync:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.Relay.topicSync
2021-12-04 03:19:12 +01:00
This config variable defaults to "True", is network-specific, and is channel-specific.
2021-04-05 17:29:49 +02:00
Determines whether the bot will synchronize topics between networks in the channels it relays.