Class: Bender::Processor::SweetDude

Inherits:
BaseProcessor show all
Defined in:
processors/sweet_dude.rb

Overview

Description

Dude Where's My Car? c'mon!

Dependencies

none

Configuration

none

Authors

Michael Heijmans ([email protected])

Instance Attribute Summary

Attributes inherited from BaseProcessor

#bot, #command, #msg, #origin, #room

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseProcessor

#call, #directly_addressed?, #hear, #initialize, #reply, #respond, #should_process?

Constructor Details

This class inherits a constructor from Bender::BaseProcessor

Class Method Details

.helpObject


20
21
22
23
24
25
# File 'processors/sweet_dude.rb', line 20

def self.help
  [
    "sweet - replies with 'Dude!",
    "dude - replies with 'Sweet!'"
  ]
end

Instance Method Details

#processObject


15
16
17
18
# File 'processors/sweet_dude.rb', line 15

def process
  hear(/sweet/i) { reply 'Dude!' }
  hear(/dude/i)  { reply 'Sweet!' }
end