diff options
author | Zoffix Znet <cpan@zoffix.com> | 2015-12-21 09:53:40 -0500 |
---|---|---|
committer | Zoffix Znet <cpan@zoffix.com> | 2015-12-21 09:53:40 -0500 |
commit | ebdb216d4d47e1ab061e3719fe3af01856d2486f (patch) | |
tree | 98015e30f29c3be9c63f64a42fab128132bd4cfd | |
parent | 3ef85d79fec87c063aeb00a605fd8d40d2ec5cb4 (diff) |
Use a more idomatic example
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | examples/bot.pl6 | 8 |
2 files changed, 4 insertions, 6 deletions
@@ -13,7 +13,7 @@ IRC::Client - Extendable Internet Relay Chat client use IRC::Client::Plugin::Debugger; IRC::Client.new( - :host('localhost') + :host<localhost> :channels<#perl6bot #zofbot> :debug :plugins( IRC::Client::Plugin::Debugger.new ) diff --git a/examples/bot.pl6 b/examples/bot.pl6 index b5adb16..34528c7 100644 --- a/examples/bot.pl6 +++ b/examples/bot.pl6 @@ -4,10 +4,8 @@ use IRC::Client; use IRC::Client::Plugin::Debugger; my $irc = IRC::Client.new( - :host('10.10.11.12'), + :host<localhost> :channels<#perl6bot #zofbot> - :debug, - plugins => [ - IRC::Client::Plugin::Debugger.new - ] + :debug + :plugins( IRC::Client::Plugin::Debugger.new ) ).run; |