Sha256: 09eef996d2966f4e2a50a6c000c544f059b246a66a6737f8ea09c72bd01dfa18

Contents?: true

Size: 353 Bytes

Versions: 1

Compression:

Stored size: 353 Bytes

Contents

require 'net/irc'
require 'logger'

module Agig::Client
  def self.run
    opts = Agig::OptParser.parse!(ARGV)

    if opts[:log]
      opts[:logger] = Logger.new(opts[:log], "daily")
      opts[:logger].level = opts[:debug] ? Logger::DEBUG : Logger::INFO
    end

    Net::IRC::Server.new(opts[:host], opts[:port], Agig::Session, opts).start
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
agig-0.2.1 lib/agig/client.rb