aboutsummaryrefslogtreecommitdiff
path: root/examples/bot.pl6
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bot.pl6')
-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;