diff options
author | Zoffix Znet <cpan@zoffix.com> | 2016-07-29 10:09:04 -0400 |
---|---|---|
committer | Zoffix Znet <cpan@zoffix.com> | 2016-07-29 10:09:04 -0400 |
commit | 99eee13297570f3cf2897183e7d1c8f51276c61a (patch) | |
tree | 4728757d35cd2e87aefcba57ae64aca09f27d5e1 /docs/01-basics.md | |
parent | 582354a484e67a9bbbf4271622e13d22eca89853 (diff) |
Moar docs
Diffstat (limited to 'docs/01-basics.md')
-rw-r--r-- | docs/01-basics.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/01-basics.md b/docs/01-basics.md index c43fd49..36ae32f 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 @@ -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 |