Module: Flumtter::Command::DM

Defined in:
lib/flumtter/app/core/command/dm.rb

Instance Method Summary collapse

Instance Method Details

#add_command(twitter) ⇒ Object



3
4
5
6
7
8
9
10
# File 'lib/flumtter/app/core/command/dm.rb', line 3

def add_command(twitter)
  command("r", "Reply") do |m|
    error_handler do
      obj, m2 = parse_index(m[1])
      twitter.rest.create_direct_message(obj.sender.id, m2)
    end
  end
end