From cb0a6cace8871d17c9701edc1ccba26d1e6e0bfe Mon Sep 17 00:00:00 2001 From: Zoffix Znet Date: Sat, 4 Jun 2016 10:32:49 -0400 Subject: Wtf --- examples/bot.pl6 | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'examples') diff --git a/examples/bot.pl6 b/examples/bot.pl6 index 3737de1..94eb929 100644 --- a/examples/bot.pl6 +++ b/examples/bot.pl6 @@ -1,8 +1,16 @@ use v6; use lib 'lib'; -use IRC::Client; +use IRC::Client::Grammar; +use IRC::Client::Grammar:Actions; -my $irc = IRC::Client.new( - :debug - :port<5667> -).run; +say IRC::Client::Grammar.parse( + 'PRIVMSG #perl6 :hello', + actions => IRC::Client::Grammar::Actions.new, +).made; + +# use IRC::Client; +# +# my $irc = IRC::Client.new( +# :debug +# :port<5667> +# ).run; -- cgit v1.1