Class: October::Base
- Inherits:
-
Cinch::Bot
- Object
- Cinch::Bot
- October::Base
- Defined in:
- lib/october/base.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Base
constructor
A new instance of Base.
Methods included from Redis
Methods included from Environment
#configuration, #configuration!, #environment, #load_configuration
Methods included from Config
Constructor Details
#initialize ⇒ Base
Returns a new instance of Base.
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/october/base.rb', line 14 def initialize super do load_config! on :message, "hello" do |m| m.reply "Hello, #{m.user.nick}" end end end |
Class Method Details
.start ⇒ Object
6 7 8 |
# File 'lib/october/base.rb', line 6 def self.start new.start end |