Module: Tropeco
- Defined in:
- lib/tropeco.rb,
lib/tropeco/configurations.rb,
lib/tropeco/plugins/download.rb,
lib/tropeco/plugins/hello_world.rb,
lib/tropeco/plugins/transcriptions.rb
Defined Under Namespace
Modules: Plugins Classes: Configurations
Class Method Summary collapse
Class Method Details
.start ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/tropeco.rb', line 5 def self.start plugins = [Tropeco::Plugins::HelloWorld, Tropeco::Plugins::DownloadFile, Tropeco::Plugins::Transcription] # configs = Tropeco::Configurations.new('config.yaml') configs = Tropeco::Configurations.get_config bot = Cinch::Bot.new do configure do |c| c.server = configs.server c.nick = configs.nick_name c.channels = configs.channels c.plugins.plugins = plugins end end bot.start end |