Class: Lita::Extensions::NonCommandOnly

Inherits:
Object
  • Object
show all
Defined in:
lib/lita/extensions/non_command_only.rb

Class Method Summary collapse

Class Method Details

.call(payload) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/lita/extensions/non_command_only.rb', line 4

def self.call(payload)
  if payload[:route].extensions[:non_command_only] and payload[:message].command?
    return false
  else
    return true
  end
end