Class: Ruboty::TrustMe::Actions::DontTrust
- Inherits:
-
Actions::Base
- Object
- Actions::Base
- Ruboty::TrustMe::Actions::DontTrust
- Defined in:
- lib/ruboty/trust_me/actions/dont_trust.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/ruboty/trust_me/actions/dont_trust.rb', line 5 def call if [:name] .robot.trusted_names.delete_if {|n| n == [:name] } .reply(%(I don't trust #{[:name]}.)) else .robot.trusted_names.delete_if {|n| n == .from_name } .reply(%(I don't trust you.)) end end |