diff options
Diffstat (limited to 'lib/Crawl/Bot/Plugin')
-rw-r--r-- | lib/Crawl/Bot/Plugin/Logging.pm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Crawl/Bot/Plugin/Logging.pm b/lib/Crawl/Bot/Plugin/Logging.pm index 1d46d14..6bc6ecc 100644 --- a/lib/Crawl/Bot/Plugin/Logging.pm +++ b/lib/Crawl/Bot/Plugin/Logging.pm @@ -71,7 +71,16 @@ sub said { # Only log the first channel if ($args->{channel} eq $self->bot->{channels}[0]) { $self->log_message("<$args->{who}> $args->{body}"); + } elsif ($args->{channel} ne "msg" + and $args->{who} =~ /^(?:Gretell|Henzell|\|amethyst)$/ + and $args->{body} =~ /(\S+) .*became the Champion of Cheibriados/) + { + $self->say( + channel => $args->{channel}, + body => "Did I ever mention that $1 is one of my favourite people?" + ); } + return; } |