summary refs log tree commit diff stats
path: root/advice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'advice.cpp')
-rw-r--r--advice.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/advice.cpp b/advice.cpp index 3428512..18be163 100644 --- a/advice.cpp +++ b/advice.cpp
@@ -89,7 +89,7 @@ void advice::run() const
89 int backoff = 0; 89 int backoff = 0;
90 90
91 std::cout << "Generating noun..." << std::endl; 91 std::cout << "Generating noun..." << std::endl;
92 std::cout << "Noun: " << pictured.getBaseForm() << std::endl; 92 std::cout << "Noun: " << pictured.getBaseForm().getText() << std::endl;
93 std::cout << "Getting URLs..." << std::endl; 93 std::cout << "Getting URLs..." << std::endl;
94 94
95 std::string lstdata; 95 std::string lstdata;
@@ -295,7 +295,8 @@ void advice::run() const
295 try 295 try
296 { 296 {
297 pic.magick("png"); 297 pic.magick("png");
298 pic.write(&outputimg); 298 //pic.write(&outputimg);
299 pic.write("output.png");
299 } catch (const Magick::WarningCoder& e) 300 } catch (const Magick::WarningCoder& e)
300 { 301 {
301 // Ignore 302 // Ignore
@@ -310,8 +311,8 @@ void advice::run() const
310 tweetText = tweetText.substr(0, tweetLim - 1) + "…"; 311 tweetText = tweetText.substr(0, tweetLim - 1) + "…";
311 } 312 }
312 313
313 long media_id = client_->uploadMedia("image/png", (const char*) outputimg.data(), outputimg.length()); 314 //long media_id = client_->uploadMedia("image/png", (const char*) outputimg.data(), outputimg.length());
314 client_->updateStatus(tweetText, {media_id}); 315 //client_->updateStatus(tweetText, {media_id});
315 316
316 std::cout << "Tweeted!" << std::endl << "Waiting..." << std::endl; 317 std::cout << "Tweeted!" << std::endl << "Waiting..." << std::endl;
317 318