lib/chatterbot/bot.rb in chatterbot-0.2.8 vs lib/chatterbot/bot.rb in chatterbot-0.2.9
- old
+ new
@@ -14,9 +14,13 @@
include Helpers
#
# Create a new bot. No options for now.
def initialize(params={})
+ if params.has_key?(:name)
+ @botname = params.delete(:name)
+ end
+
@config = load_config(params)
# update config when we exit
at_exit do
raise $! if $!