lib/cogbot.rb in cogbot-0.1.6 vs lib/cogbot.rb in cogbot-0.1.7

- old
+ new

@@ -4,11 +4,10 @@ require 'nokogiri' require 'net/http' require 'daemons' require 'thor' require 'yajl' -require "lib/cogbot/version" require "lib/cogbot/utils" require "lib/cogbot/server" # main cogbot module module Cogbot @@ -39,14 +38,11 @@ ) # checkout plugins plugins = [] config['main']['plugins'].each do |p| - puts p - puts File.join(ROOT_DIR,'plugins',"#{p}.rb") - if File.exists?(File.join(ROOT_DIR,'plugins',"#{p}.rb")) - puts p - require File.join(ROOT_DIR,'plugins',p) + if File.exists?(File.join(ROOT_DIR, 'plugins', "#{p}.rb")) + require File.join(ROOT_DIR, 'plugins', p) plugins.push Cinch::Plugins.const_get(p.camelize) end end # create bot