the mg2bot 0.71 (Default branch)


 
Thread Tools Search this Thread
Special Forums News, Links, Events and Announcements Software Releases - RSS News the mg2bot 0.71 (Default branch)
# 1  
Old 08-19-2008
the mg2bot 0.71 (Default branch)

the mg2bot is an IRC bot that was originally written to do unique channel maintenance but which now sports a homebrew plugin system, increased channel awareness, and a bot networking capability.License: Perl LicenseChanges:
This release fixes a scheduled event bug that caused the bot to freeze up in certain situations. It adds a wowitem plugin for looking up World of Warcraft items on wowhead. It adds random_quote, areacode, and emeter general bot plugins. It has a major overhaul of the calc plugin, which allows for the use of math functions like abs(), sqrt(), etc.Image

More...
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question
POE::Component::IRC::Plugin::BotAddressed(3pm)		User Contributed Perl Documentation	    POE::Component::IRC::Plugin::BotAddressed(3pm)

NAME
POE::Component::IRC::Plugin::BotAddressed - A PoCo-IRC plugin that generates events when you are addressed SYNOPSIS
use POE::Component::IRC::Plugin::BotAddressed; $irc->plugin_add( 'BotAddressed', POE::Component::IRC::Plugin::BotAddressed->new() ); sub irc_bot_addressed { my ($kernel, $heap) = @_[KERNEL, HEAP]; my $nick = ( split /!/, $_[ARG0] )[0]; my $channel = $_[ARG1]->[0]; my $what = $_[ARG2]; print "$nick addressed me in channel $channel with the message '$what' "; } sub irc_bot_mentioned { my ($nick) = ( split /!/, $_[ARG0] )[0]; my ($channel) = $_[ARG1]->[0]; my ($what) = $_[ARG2]; print "$nick mentioned my name in channel $channel with the message '$what' "; } DESCRIPTION
POE::Component::IRC::Plugin::BotAddressed is a POE::Component::IRC plugin. It watches for public channel traffic (i.e. "irc_public" and "irc_ctcp_action") and will generate an "irc_bot_addressed", "irc_bot_mentioned" or "irc_bot_mentioned_action" event if its name comes up in channel discussion. METHODS
"new" One optional argument: 'eat', set to true to make the plugin eat the "irc_public" / "irc_ctcp_action" event and only generate an appropriate event, default is false. Returns a plugin object suitable for feeding to POE::Component::IRC's "plugin_add" method. OUTPUT EVENTS
"irc_bot_addressed" Has the same parameters passed as "irc_ctcp_public". "ARG2" contains the message with the addressed nickname removed, ie. Assuming that your bot is called LameBOT, and someone says 'LameBOT: dance for me', you will actually get 'dance for me'. "irc_bot_mentioned" Has the same parameters passed as "irc_public". "irc_bot_mentioned_action" Has the same parameters passed as "irc_ctcp_action". AUTHOR
Chris 'BinGOs' Williams <chris@bingosnet.co.uk> perl v5.14.2 2011-12-07 POE::Component::IRC::Plugin::BotAddressed(3pm)