From 3ef85d79fec87c063aeb00a605fd8d40d2ec5cb4 Mon Sep 17 00:00:00 2001 From: Zoffix Znet Date: Mon, 21 Dec 2015 09:48:38 -0500 Subject: Use a better example --- README.md | 7 ++++--- examples/bot.pl6 | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 75fd4ce..77ab9d5 100644 --- a/README.md +++ b/README.md @@ -13,9 +13,10 @@ IRC::Client - Extendable Internet Relay Chat client use IRC::Client::Plugin::Debugger; IRC::Client.new( - :host('localhost'), - :debug, - plugins => [ IRC::Client::Plugin::Debugger.new ] + :host('localhost') + :channels<#perl6bot #zofbot> + :debug + :plugins( IRC::Client::Plugin::Debugger.new ) ).run; ``` diff --git a/examples/bot.pl6 b/examples/bot.pl6 index 76c9fbb..b5adb16 100644 --- a/examples/bot.pl6 +++ b/examples/bot.pl6 @@ -5,6 +5,7 @@ use IRC::Client::Plugin::Debugger; my $irc = IRC::Client.new( :host('10.10.11.12'), + :channels<#perl6bot #zofbot> :debug, plugins => [ IRC::Client::Plugin::Debugger.new -- cgit v1.1