class Lita::Handlers::Bearychat

Constants

INNEED_PARAMS

Private Instance Methods

format_text(text) click to toggle source
# File lib/lita/handlers/bearychat.rb, line 28
def format_text(text)
  mention_string = "@#{robot.mention_name}"
  text.index(mention_string) ? text : "#{mention_string} #{text}"
end