From dfe212d5b237b357f76e9d6ae4c899f47a681683 Mon Sep 17 00:00:00 2001 From: Zoffix Znet Date: Thu, 28 Jul 2016 23:45:54 -0400 Subject: Fix async --- docs/01-basics.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs') diff --git a/docs/01-basics.md b/docs/01-basics.md index bbbdcd0..c43fd49 100644 --- a/docs/01-basics.md +++ b/docs/01-basics.md @@ -88,9 +88,9 @@ the original message, prefixed with `You said `. :host :channels<#perl6bot #zofbot> :debug - :plugins( + :plugins[ class { method irc-to-me ($e) { "You said $e.text()"} } - ) + ] ``` ## Generating Messages @@ -104,7 +104,7 @@ the `$.irc` attribute: use IRC::Client; class AlarmBot does IRC::Client::Plugin { - method irc-started { + method irc-connected ($) { react { whenever Supply.interval(3) { $.irc.send: :where<#perl6> :text; @@ -118,7 +118,7 @@ class AlarmBot does IRC::Client::Plugin { :host :channels<#perl6> :debug - :plugins(AlarmBot.new) + :plugins[AlarmBot.new] ``` Here, we subscribe to `irc-connected` event (using an anonymous parameter -- cgit v1.1