From ebdb216d4d47e1ab061e3719fe3af01856d2486f Mon Sep 17 00:00:00 2001 From: Zoffix Znet Date: Mon, 21 Dec 2015 09:53:40 -0500 Subject: Use a more idomatic example --- README.md | 2 +- examples/bot.pl6 | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 77ab9d5..328bfe1 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ IRC::Client - Extendable Internet Relay Chat client use IRC::Client::Plugin::Debugger; IRC::Client.new( - :host('localhost') + :host :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 :channels<#perl6bot #zofbot> - :debug, - plugins => [ - IRC::Client::Plugin::Debugger.new - ] + :debug + :plugins( IRC::Client::Plugin::Debugger.new ) ).run; -- cgit v1.1