class Schatter::ConversationContext

Public Class Methods

new(conversation) click to toggle source
# File lib/schatter/conversation_context.rb, line 8
def initialize conversation
  @prompt = "#{conversation.name} > "
  @conversation = conversation
  add_command load_command(:list_messages, conversation), "'"
  add_command load_command(:create_message, conversation), 'say'
  add_command load_command(:reply_to_message, conversation, self), 'reply'
  add_command load_command(:delete_message, conversation), 'delete'
  add_command load_command(:invite_person, conversation), 'invite'
  add_command load_command(:list_people, conversation), 'who'
end