Class: October::Base

Inherits:
Cinch::Bot
  • Object
show all
Includes:
Config, Redis
Defined in:
lib/october/base.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Redis

included

Methods included from Environment

#configuration, #configuration!, #environment, #load_configuration

Methods included from Config

#load_config!

Constructor Details

#initializeBase

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

.startObject



6
7
8
# File 'lib/october/base.rb', line 6

def self.start
  new.start
end