Permalink
Browse files

Fix Synopsis

  • Loading branch information...
1 parent f150778 commit 03d0700e142acadcd3397bca2c97f4a13c3e62de Crab Qiu committed Jun 11, 2012
Showing with 9 additions and 8 deletions.
  1. +9 −8 README.pod
View
@@ -6,14 +6,7 @@ Elegant. Simple. Probably compiles.
use Net::IRC::Bot;
use Net::IRC::Modules::Autoident;
-
- class AnnoyUsers does ExtraAnnoying {
- #Will be called when the bot gets a join event
- multi method joined ($e) {
- $e.reply("Hi there, {$e.who<nick>}!");
- }
- }
-
+
#Roles can let you break up large event handler modules into smaller ones.
role ExtraAnnoying {
has %enemies = ('bob', 'sam', 'chanserv') X=> 1;
@@ -23,6 +16,14 @@ Elegant. Simple. Probably compiles.
}
}
+
+ class AnnoyUsers does ExtraAnnoying {
+ #Will be called when the bot gets a join event
+ multi method joined ($e) {
+ $e.reply("Hi there, {$e.who<nick>}!");
+ }
+ }
+
Net::IRC::Bot.new(
nick => 'KickMe',

0 comments on commit 03d0700

Please sign in to comment.