diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-02-10 11:25:22 -0500 | 
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-02-10 11:25:22 -0500 | 
| commit | 45940415dc6316268938c4ca26dfdd8b254508eb (patch) | |
| tree | fe3f0f11853d1692e8fd350b089bcfb58db23e30 /advice.cpp | |
| parent | 939b89fbefee73a26eed4bc27c7714c79c74ec74 (diff) | |
| download | advice-45940415dc6316268938c4ca26dfdd8b254508eb.tar.gz advice-45940415dc6316268938c4ca26dfdd8b254508eb.tar.bz2 advice-45940415dc6316268938c4ca26dfdd8b254508eb.zip  | |
Updated verbly (bugfix)
Diffstat (limited to 'advice.cpp')
| -rw-r--r-- | advice.cpp | 9 | 
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 | ||
