require 'cinch'

class DCTVBot < Cinch::Bot
  def initialize(*args)
    super
  end
end

class DCTVBot < Cinch::Bot
  def initialize(&b)
    super

    # Handle SIGINT (Ctrl-C)
    trap "SIGINT" do
      debug "Caught SIGINT, quitting..."
      self.quit
    end

    # Handle SIGTERM (Kill Command)
    trap "SIGTERM" do
      debug "Caught SIGTERM, quitting..."
      self.quit
    end
  end
end

Update DCTVBot to handle Ctrl-C and Kill
Update DCTVBot to handle Ctrl-C and Kill
