lib/lita/robot.rb in lita-2.6.0 vs lib/lita/robot.rb in lita-2.7.0

- old
+ new

@@ -11,16 +11,22 @@ # The name the robot will look for in incoming messages to determine if it's # being addressed. # @return [String] The mention name. attr_accessor :mention_name + # An alias the robot will look for in incoming messages to determine if it's + # being addressed. + # @return [String, Nil] The alias, if one was set. + attr_accessor :alias + # The name of the robot as it will appear in the chat. # @return [String] The robot's name. attr_reader :name def initialize @name = Lita.config.robot.name @mention_name = Lita.config.robot.mention_name || @name + @alias = Lita.config.robot.alias @app = RackApp.new(self).to_app load_adapter trigger(:loaded) end