aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorZoffix Znet <cpan@zoffix.com>2016-07-28 23:45:54 -0400
committerZoffix Znet <cpan@zoffix.com>2016-07-28 23:45:54 -0400
commitdfe212d5b237b357f76e9d6ae4c899f47a681683 (patch)
treeaec9d2f76ab10a577a59640da9f2ae641a71a4d5 /docs
parent311095fd68090ed82e9fff9f71003bc5247a108b (diff)
Fix async
Diffstat (limited to 'docs')
-rw-r--r--docs/01-basics.md8
1 files changed, 4 insertions, 4 deletions
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<irc.freenode.net>
: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<Three seconds passed!>;
@@ -118,7 +118,7 @@ class AlarmBot does IRC::Client::Plugin {
:host<irc.freenode.net>
:channels<#perl6>
:debug
- :plugins(AlarmBot.new)
+ :plugins[AlarmBot.new]
```
Here, we subscribe to `irc-connected` event (using an anonymous parameter