Project

General

Profile

« Previous | Next » 

Revision bc642412

Added by Marc Dequènes over 13 years ago

  • ID bc642412b31c7f4a3066a649cd06cc2a0acc4b8b

[evol] moved EM loop in Cyborg, simplified and enhanced bot interface, and made Conversation common for any connection type

View differences:

lib/cyborghood/cyborg/conversation.rb
@protocol = BotProtocol.new(self)
end
def capabilities
[]
end
def post_init
logger.debug "New conversation with #{identifier}"
end
......
@split_data_message = nil
@split_data = []
end
end
class ConversationUNIXSocket < Conversation
public_class_method :new
def identifier
"unix_socket/#{@signature}"
end
def capabilities
super + []
"#{@bot.identifier_prefix}/#{@signature}"
end
end
end

Also available in: Unified diff