From ea06cf4b110362b9e4cb86e07d65139521a1533e Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 27 Nov 2016 13:51:42 -0500 Subject: Updated verbly & libtwitter++ to remove dependence on json submodule --- composite.cpp | 11 ++++++----- vendor/libtwittercpp | 2 +- vendor/verbly | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/composite.cpp b/composite.cpp index bac075c..49a2301 100644 --- a/composite.cpp +++ b/composite.cpp @@ -29,14 +29,15 @@ int main(int argc, char** argv) std::string output = "Full Metal " + noun; std::cout << output << std::endl; - twitter::tweet sent; - twitter::response resp = client.updateStatus(output, sent); - if (resp != twitter::response::ok) + try { - std::cout << "Twitter error: " << resp << std::endl; + client.updateStatus(output); + } catch (const twitter::twitter_error& e) + { + std::cout << "Twitter error: " << e.what() << std::endl; } std::cout << "Waiting..." << std::endl; std::this_thread::sleep_for(std::chrono::hours(1)); } -} \ No newline at end of file +} diff --git a/vendor/libtwittercpp b/vendor/libtwittercpp index 5018801..d90a1e7 160000 --- a/vendor/libtwittercpp +++ b/vendor/libtwittercpp @@ -1 +1 @@ -Subproject commit 501880160ac69f90143bc38add541731a9242ab0 +Subproject commit d90a1e74c77ba67f25a812609fd49d479bc464dd diff --git a/vendor/verbly b/vendor/verbly index 6c2aca0..1f898f3 160000 --- a/vendor/verbly +++ b/vendor/verbly @@ -1 +1 @@ -Subproject commit 6c2aca03c89b37e136ab4c7ea58b485dadc85bcd +Subproject commit 1f898f3bd66c29672275c2c884b17ba662ced626 -- cgit 1.4.1