lib/bobot.rb in bobot-1.0.53 vs lib/bobot.rb in bobot-2.1.0

- old
+ new

@@ -12,7 +12,21 @@ require 'bobot/buttons' require 'bobot/commander' require 'bobot/event' module Bobot - extend Configuration + def self.configure + yield config + end + + def self.config + @config ||= Configuration.new + end + + def self.config=(config) + @config = config + end + + configure do |config| + config.pages = [] + end end