lib/groupme/cli.rb in groupme-cli-0.1.0 vs lib/groupme/cli.rb in groupme-cli-0.2.0

- old
+ new

@@ -19,9 +19,15 @@ input_thread = Thread.new do loop do input = gets if input[0..6] == "%image " sesh.send_msg("", input[7..-1].strip) + elsif input.strip == "%groups" + status_buffer << "Your groups:\n" + + sesh.get_groups.each do |group| + status_buffer << group["name"] + end elsif input[0..4] == "%quit" exit elsif input[0..5] == "%open " name = input[6..-1].chomp