1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
use lib <lib>; use IRC::Client; class BFF { method irc-to-me ($ where /'♥'/) { 'I ♥ YOU!' } } .run with IRC::Client.new: :debug :plugins(BFF) :nick<MahBot> :channels<#zofbot> :servers( freenode => %( :host<irc.freenode.net>, ), local => %( :nick<P6Bot>, :channels<#zofbot #perl6>, :host<localhost>, ) )