require 'cleverbot'

module Cinch
	module Plugins

		class CleverBot
			include Cinch::Plugin

			match lambda { |m| /(.*)\s?@?#{m.bot.nick}[:,]?\s*(.*)/i }, use_prefix: false

			def execute(m, part_one, part_two=nil)
				response = @cleverbot.write "#{part_one} #{part_two}"
				m.reply response, true
			end
		end

	end
end

require 'cleverbot'

module Cinch
	module Plugins

		class CleverBot
			include Cinch::Plugin

			match lambda { |m| /(.*)\s?@?#{m.bot.nick}[:,]?\s*(.*)/i }, use_prefix: false

			def initialize(*args)
				super
				@cleverbot = Cleverbot.new
			end

			def execute(m, part_one, part_two=nil)
				response = @cleverbot.write "#{part_one} #{part_two}"
				m.reply response, true
			end
		end

	end
end

Fix initialize function that didn't make the move
Fix initialize function that didn't make the move
