From 17935c22d4f70260182e1b8a2a0be1e686fb79e3 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 25 Mar 2018 18:02:37 -0400 Subject: Whitespace changes --- manifesto.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'manifesto.cpp') diff --git a/manifesto.cpp b/manifesto.cpp index b81c66a..3c440c3 100644 --- a/manifesto.cpp +++ b/manifesto.cpp @@ -15,26 +15,26 @@ int main(int argc, char** argv) std::string configfile(argv[1]); YAML::Node config = YAML::LoadFile(configfile); - + twitter::auth auth; auth.setConsumerKey(config["consumer_key"].as()); auth.setConsumerSecret(config["consumer_secret"].as()); auth.setAccessKey(config["access_key"].as()); auth.setAccessSecret(config["access_secret"].as()); - + twitter::client client(auth); - + long loc = 0; if (config["current_location"]) { loc = config["current_location"].as(); } - + std::list tweets; { std::ifstream corpus(config["corpus"].as()); corpus.ignore(loc); - + char buffer[140]; while (corpus) { @@ -42,14 +42,14 @@ int main(int argc, char** argv) tweets.push_back(std::string(buffer, 140)); } } - + while (!tweets.empty()) { try { std::string nextTweet = tweets.front(); client.updateStatus(nextTweet); - + std::cout << "Tweeted!" << std::endl; loc += 140; @@ -64,9 +64,9 @@ int main(int argc, char** argv) { std::cout << "Twitter error: " << e.what() << std::endl; } - + std::cout << "Waiting..." << std::endl; - + std::this_thread::sleep_for(std::chrono::hours(6)); } } -- cgit 1.4.1