Skip to content

Commit

Permalink
Log moar channels.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasiek committed Jul 1, 2015
1 parent 5c35b78 commit 33b5ac6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bot.rb
Expand Up @@ -9,7 +9,7 @@
configure do |c|
c.nick = 'm0hsl-bot'
c.server = "irc.freenode.net"
c.channels = [ "#lhs-radio", "#london-hack-space" ]
c.channels = [ "#lhs-radio", "#london-hack-space", "#london-hack-space-infrastructure", "#london-hack-space-dev" ]
c.plugins.plugins = [Cinch::Plugins::Identify,
Cinch::Plugins::PSKReporter,
Cinch::Plugins::TwitterWatch]
Expand All @@ -33,8 +33,9 @@
end
end

bot.loggers << Cinch::Logger::CanonicalLogger.new('lhs-radio', bot)
bot.loggers << Cinch::Logger::CanonicalLogger.new('london-hack-space', bot)
bot.channels.each do |channel|
bot.loggers << Cinch::Logger::CanonicalLogger.new(channel, bot)
end

# We tweet only from time to time.
Cinch::Plugins::TwitterWatch.timers.last.interval = 600
Expand Down

0 comments on commit 33b5ac6

Please sign in to comment.