Class: Cakewalk::Configuration::Bot
- Inherits:
-
Cakewalk::Configuration
- Object
- OpenStruct
- Cakewalk::Configuration
- Cakewalk::Configuration::Bot
- Defined in:
- lib/cakewalk/configuration/bot.rb
Overview
Constant Summary collapse
- KnownOptions =
[:server, :port, :ssl, :password, :nick, :nicks, :realname, :user, :messages_per_second, :server_queue_size, :strictness, :message_split_start, :message_split_end, :max_messages, :plugins, :channels, :encoding, :reconnect, :max_reconnect_delay, :local_host, :timeouts, :ping_interval, :delay_joins, :dcc, :shared, :sasl, :default_logger_level]
Class Method Summary collapse
-
.default_config ⇒ Hash
Generate a default configuration.
Methods inherited from Cakewalk::Configuration
#[], #[]=, #initialize, #load, #load!, #to_h
Constructor Details
This class inherits a constructor from Cakewalk::Configuration
Class Method Details
.default_config ⇒ Hash
Generate a default configuration.
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/cakewalk/configuration/bot.rb', line 14 def self.default_config { :server => "localhost", :port => 6667, :ssl => Configuration::SSL.new, :password => nil, :nick => "cakewalk", :nicks => nil, :realname => "cakewalk", :user => "cakewalk", :modes => [], :messages_per_second => nil, :server_queue_size => nil, :strictness => :forgiving, :message_split_start => '... ', :message_split_end => ' ...', :max_messages => nil, :plugins => Configuration::Plugins.new, :channels => [], :encoding => :irc, :reconnect => true, :max_reconnect_delay => 300, :local_host => nil, :timeouts => Configuration::Timeouts.new, :ping_interval => 120, :delay_joins => 0, :dcc => Configuration::DCC.new, :sasl => Configuration::SASL.new, :shared => {}, :default_logger_level => :debug } end |