aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorZoffix Znet <cpan@zoffix.com>2016-06-04 15:16:43 -0400
committerZoffix Znet <cpan@zoffix.com>2016-06-04 15:16:43 -0400
commit791d7981cff0cd3a85fdd504f410a7c9833272dc (patch)
tree8939f72fb9d4c496cf2f988e35a3d6351343c374 /examples
parentcb0a6cace8871d17c9701edc1ccba26d1e6e0bfe (diff)
More stuff
Diffstat (limited to 'examples')
-rw-r--r--examples/bot.pl619
1 files changed, 6 insertions, 13 deletions
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;