aboutsummaryrefslogtreecommitdiff
path: root/examples/bot.pl6
blob: 94eb929e98c00702c3d138ec3ab01df2802ffe05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use v6;
use lib 'lib';
use IRC::Client::Grammar;
use IRC::Client::Grammar:Actions;

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;