The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

bot.redirection

Provides functions for modifying the recipient(s) of function output.

to-nick

Description

Redirects output to a private message delivered to the given nick. Must be on the same server. All input values are passed through unchanged.

Usage

<recipient name> <value> [<value> ...]

Examples

    (to-nick dungeonmaster (join ": " "I roll stealth" (roll 20 1)))

to-channel

Description

Redirects output to a specific channel. Must be on the same server. All input values are passed through unchanged.

Usage

<channel name> <value> [<value> ...]

Examples

    (to-channel #boringchannel "Join us over in #superfunchannel!")