Module: CrazyDoll

Defined in:
lib/crazy_doll/core.rb

Defined Under Namespace

Modules: Config, PluginManager Classes: Bot, Event, EventManager, IRC, Message, Plugin, Wizard

Constant Summary collapse

VERSION =
'0.0.1'.freeze

Class Method Summary collapse

Class Method Details

.initObject



5
6
7
8
9
10
11
12
# File 'lib/crazy_doll/core.rb', line 5

def self.init
  config_file     = File.join(ENV['HOME'], '.crazy_doll', 'database.yaml')
  config_instance = CrazyDoll::Config.new('yaml', config_file)
  config          = config_instance.config_of 'Core'
  CrazyDoll::Wizard.new(config)
  config_instance.save
  CrazyDoll::Bot.new(config_instance).start
end