Permalink
Browse files

Quickly add in a total open ticket count.

  • Loading branch information...
1 parent 519e713 commit aa646ce58e93940568cc4f297132d7ee1095f4af @alloy alloy committed Dec 4, 2010
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/macruby_bugmash_bot.rb
View
5 lib/macruby_bugmash_bot.rb
@@ -29,6 +29,11 @@
HELP.each { |msg| m.user.send(msg) }
end
+ # TODO move this out
+ on :channel, "!total" do |m|
+ m.reply "There are a total of #{DB.tickets.filter(:closed => false).count} open tickets."
+ end
+
on :channel, "!gimme" do |m|
m.reply @trac.open_ticket
end

0 comments on commit aa646ce

Please sign in to comment.