Bot::IRC::Greeting - Bot::IRC greet joining users to channels
version 1.38
use Bot::IRC; Bot::IRC->new( connect => { server => 'irc.perl.org' }, plugins => ['Greeting'], vars => { greeting => { greeting => 'morning', channels => [ '#perl', '#perl-help' ], }, }, )->run;
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.
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.
Bot::IRC
Gryphon Shafer <gryphon@cpan.org>
This software is Copyright (c) 2016-2021 by Gryphon Shafer.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install Bot::IRC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bot::IRC
CPAN shell
perl -MCPAN -e shell install Bot::IRC
For more information on module installation, please visit the detailed CPAN module installation guide.