NAME

Bot::IRC::Greeting - Bot::IRC greet joining users to channels

VERSION

version 1.31

SYNOPSIS

    use Bot::IRC;

    Bot::IRC->new(
        connect => { server => 'irc.perl.org' },
        plugins => ['Greeting'],
        vars    => {
            greeting => {
                greeting => 'morning',
                channels => [ '#perl', '#perl-help' ],
            },
        },
    )->run;

DESCRIPTION

This Bot::IRC plugin causes the bot to greet joining users to channels. By default, it will say something like "greetings" to whomever joins. The bot will change the style of "greetings" to somewhat match the user's nick style. For example, if "John" joins, the bot will say "Greetings" to him. If "joan_" joins, the bot will say "greetings_" to her.

You can specify the greeting word and channel list with vars.

    greeting => 'morning',
    channels => [ '#perl', '#perl-help' ],

If greeting isn't specified, the bot will use "greetings" as the greeting. If a channel list isn't supplied, the bot will greet on all channels it's on. If you specify a greeting of empty string or some other false value, the greeting will get skipped.

SEE ALSO

Bot::IRC

AUTHOR

Gryphon Shafer <gryphon@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2016-2021 by Gryphon Shafer.

This is free software, licensed under:

  The Artistic License 2.0 (GPL Compatible)