summaryrefslogtreecommitdiffstats
path: root/lib/Crawl/Bot.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Crawl/Bot.pm')
-rw-r--r--lib/Crawl/Bot.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Crawl/Bot.pm b/lib/Crawl/Bot.pm
index 47738fb..b6d956e 100644
--- a/lib/Crawl/Bot.pm
+++ b/lib/Crawl/Bot.pm
@@ -68,4 +68,13 @@ sub tick {
return $self->update_time;
}
+sub say_all {
+ my $self = shift;
+ my ($message) = @_;
+ $self->say(
+ channel => $_,
+ body => $message,
+ ) for $self->channels;
+}
+
1;