aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
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;