Tomohiro/kris

View on GitHub
example/mybot/bot

Summary

Maintainability
Test Coverage
#!/usr/bin/env ruby

require 'kris'

bot = Kris::Session.new(
  :server   => 'irc.freenode.net',
  :port     => 6667,
  :channel  => '#MyChannel',
# :channels => %w(#channel_1 #channel_2 #channel3)   #  If you want join multiple channels.
  :username => 'ExampleBot',
  :nickname => 'ExampleBot',
  :realname => 'ExampleBot'
)

bot.start