aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorZoffix Znet <cpan@zoffix.com>2016-06-04 10:32:49 -0400
committerZoffix Znet <cpan@zoffix.com>2016-06-04 10:32:49 -0400
commitcb0a6cace8871d17c9701edc1ccba26d1e6e0bfe (patch)
tree9a28a7b42927556ab6c19ed2260f5211c2ca71c4 /examples
parent0daa494480f7abe37a6e593c6238811009b7b914 (diff)
Wtf
Diffstat (limited to 'examples')
-rw-r--r--examples/bot.pl618
1 files changed, 13 insertions, 5 deletions
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;