2021-04-05 17:29:49 +02:00
.. _plugin-Herald:
Documentation for the Herald plugin for Supybot
===============================================
Purpose
-------
2021-12-04 02:50:28 +01:00
2021-04-05 17:29:49 +02:00
Greets users who join the channel with a recognized hostmask with a nice
little greeting.
Usage
-----
2021-12-04 02:50:28 +01:00
2021-04-05 17:29:49 +02:00
This plugin allows you to set welcome messages (heralds) to people who
are recognized by the bot when they join a channel.
2021-04-05 22:56:40 +02:00
.. _commands-Herald:
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-herald-add:
2021-04-05 22:56:40 +02:00
2021-04-05 17:29:49 +02:00
add [<channel> ] <user|nick> <msg>
Sets the herald message for <user> (or the user <nick|hostmask> is currently identified or recognized as) to <msg>. <channel> is only necessary if the message isn't sent in the channel itself.
2021-04-17 20:09:33 +02:00
.. _command-herald-change:
2021-04-05 22:56:40 +02:00
2021-04-05 17:29:49 +02:00
change [<channel> ] [<user|nick> ] <regexp>
Changes the herald message for <user>, or the user <nick|hostmask> is currently identified or recognized as, according to <regexp>. If <user> is not given, defaults to the calling user. <channel> is only necessary if the message isn't sent in the channel itself.
2021-04-17 20:09:33 +02:00
.. _command-herald-default:
2021-04-05 22:56:40 +02:00
2021-04-05 17:29:49 +02:00
default [<channel> ] [--remove|<msg>]
If <msg> is given, sets the default herald to <msg>. A <msg> of "" will remove the default herald. If <msg> is not given, returns the current default herald. <channel> is only necessary if the message isn't sent in the channel itself.
2021-04-17 20:09:33 +02:00
.. _command-herald-get:
2021-04-05 22:56:40 +02:00
2021-04-05 17:29:49 +02:00
get [<channel> ] [<user|nick> ]
Returns the current herald message for <user> (or the user <nick|hostmask> is currently identified or recognized as). If <user> is not given, defaults to the user giving the command. <channel> is only necessary if the message isn't sent in the channel itself.
2021-04-17 20:09:33 +02:00
.. _command-herald-remove:
2021-04-05 22:56:40 +02:00
2021-04-05 17:29:49 +02:00
remove [<channel> ] [<user|nick> ]
Removes the herald message set for <user>, or the user <nick|hostmask> is currently identified or recognized as. If <user> is not given, defaults to the user giving the command. <channel> is only necessary if the message isn't sent in the channel itself.
2021-04-17 20:09:33 +02:00
.. _conf-Herald:
2021-04-05 17:29:49 +02:00
Configuration
-------------
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.Herald.default:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.Herald.default
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
Sets the default herald to use. If a user has a personal herald specified, that will be used instead. If set to the empty string, the default herald will be disabled.
2021-04-22 00:29:15 +02:00
.. _conf-supybot.plugins.Herald.default.notice:
2021-04-17 20:09:33 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.Herald.default.notice
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 default herald will be sent as a NOTICE instead of a PRIVMSG.
2021-04-22 00:29:15 +02:00
.. _conf-supybot.plugins.Herald.default.public:
2021-04-17 20:09:33 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.Herald.default.public
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 default herald will be sent publicly.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.Herald.heralding:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.Herald.heralding
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 messages will be sent to the channel when a recognized user joins; basically enables or disables the plugin.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.Herald.public:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.Herald.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.Herald.requireCapability:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.Herald.requireCapability
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 capability (if any) is required to add/change/remove the herald of another user.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.Herald.throttle:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.Herald.throttle
2021-12-04 03:19:12 +01:00
This config variable defaults to "600", is network-specific, and is channel-specific.
2021-04-05 17:29:49 +02:00
Determines the minimum number of seconds between heralds.
2021-04-22 00:29:15 +02:00
.. _conf-supybot.plugins.Herald.throttle.afterPart:
2021-04-17 20:09:33 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.Herald.throttle.afterPart
2021-12-04 03:19:12 +01:00
This config variable defaults to "0", is network-specific, and is channel-specific.
2021-04-05 17:29:49 +02:00
Determines the minimum number of seconds after parting that the bot will not herald the person when they rejoin.
2021-04-22 00:29:15 +02:00
.. _conf-supybot.plugins.Herald.throttle.afterSplit:
2021-04-17 20:09:33 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.Herald.throttle.afterSplit
2021-12-04 03:19:12 +01:00
This config variable defaults to "60", is network-specific, and is channel-specific.
2021-04-05 17:29:49 +02:00
Determines the minimum number of seconds after a netsplit that the bot will not herald the users that split.