use lib 'lib'; use IRC::Client; class MyPlug does IRC::Client::Plugin { method irc-privmsg-channel ($msg where .text ~~ /^'say' \s+ $=(.+)/ ) { $msg.reply: "How about: $.uc()"; } } my $irc = IRC::Client.new( :nick('IRCBot') :debug<2> :channels<#perl6 #perl7> # :host :port<6667> # :servers( # mine => { :port<5667> }, # inspircd => { }, # freenode => { :host }, # ) :plugins(MyPlug.new) ).run;