wakaba260/slappy

View on GitHub
lib/slappy/configuration/robot.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Slappy
  class Configuration
    class Robot
      attr_accessor :botname, :username, :channel, :icon_emoji, :icon_url, :as_user

      def as_user
        @as_user || false
      end

      def botname
        @botname || username
      end

      def username
        @username || 'slappy'
      end
    end
  end
end