From 791d7981cff0cd3a85fdd504f410a7c9833272dc Mon Sep 17 00:00:00 2001 From: Zoffix Znet Date: Sat, 4 Jun 2016 15:16:43 -0400 Subject: More stuff --- examples/bot.pl6 | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) (limited to 'examples') diff --git a/examples/bot.pl6 b/examples/bot.pl6 index 94eb929..255a0f4 100644 --- a/examples/bot.pl6 +++ b/examples/bot.pl6 @@ -1,16 +1,9 @@ use v6; use lib 'lib'; -use IRC::Client::Grammar; -use IRC::Client::Grammar:Actions; +use IRC::Client; -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; +my $irc = IRC::Client.new( + :nick('IRCBot' ~ now.Int) + :debug + :port<5667> +).run; -- cgit v1.1