Skip to content

Instantly share code, notes, and snippets.

@racbarn
Created April 4, 2011 22:35
Show Gist options
  • Save racbarn/902616 to your computer and use it in GitHub Desktop.
Save racbarn/902616 to your computer and use it in GitHub Desktop.
def run
puts "Welcome to the JSLTwitter Client"
command = ""
until command == "q"
puts "Enter Command:"
input = gets.chomp
command = input.split.first
message = input.split[1..-1].join(" ")
if command =="t"
tweet(message)
else
puts "Sorry, I don't know how to (#{command.inspect})"
end
def dm(target, message)
puts "Trying to send #{target} this direct message:"
puts message
when 'dm'then dm(parts[1], parts[1..-1].join(" "))
puts "d, " ", jumpstartfoundry,
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment