1POE::Component::IRC::PlUusgeirn:C:oBnottrTirbauftfePidOcE(P:3e:)rClomDpoocnuemnetn:t:aItRiCo:n:Plugin::BotTraffic(3)
2
3
4

NAME

6       POE::Component::IRC::Plugin::BotTraffic - A PoCo-IRC plugin that
7       generates events when you send messages
8

SYNOPSIS

10        use POE::Component::IRC::Plugin::BotTraffic;
11
12        $irc->plugin_add( 'BotTraffic', POE::Component::IRC::Plugin::BotTraffic->new() );
13
14        sub irc_bot_public {
15            my ($kernel, $heap) = @_[KERNEL, HEAP];
16            my $channel = $_[ARG0]->[0];
17            my $what = $_[ARG1];
18
19            print "I said '$what' on channel $channel\n";
20            return;
21        }
22

DESCRIPTION

24       POE::Component::IRC::Plugin::BotTraffic is a POE::Component::IRC
25       plugin. It watches for when your bot sends PRIVMSGs and NOTICEs to the
26       server and generates the appropriate events.
27
28       These events are useful for logging what your bot says.
29

METHODS

31   "new"
32       No arguments required. Returns a plugin object suitable for feeding to
33       POE::Component::IRC's "plugin_add" method.
34

OUTPUT EVENTS

36       These are the events generated by the plugin. Both events have "ARG0"
37       set to an arrayref of recipients and "ARG1" the text that was sent.
38
39   "irc_bot_public"
40       "ARG0" will be an arrayref of recipients. "ARG1" will be the text sent.
41
42   "irc_bot_msg"
43       "ARG0" will be an arrayref of recipients. "ARG1" will be the text sent.
44
45   "irc_bot_action"
46       "ARG0" will be an arrayref of recipients. "ARG1" will be the text sent.
47
48   "irc_bot_notice"
49       "ARG0" will be an arrayref of recipients. "ARG1" will be the text sent.
50

AUTHOR

52       Chris 'BinGOs' Williams [chris@bingosnet.co.uk]
53

SEE ALSO

55       POE::Component::IRC
56
57
58
59perl v5.32.0                      202P0O-E0:7:-C2o8mponent::IRC::Plugin::BotTraffic(3)
Impressum