diff options
Diffstat (limited to 'advice.cpp')
-rw-r--r-- | advice.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/advice.cpp b/advice.cpp index 18be163..11a5d65 100644 --- a/advice.cpp +++ b/advice.cpp | |||
@@ -295,8 +295,7 @@ 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"); | ||
300 | } catch (const Magick::WarningCoder& e) | 299 | } catch (const Magick::WarningCoder& e) |
301 | { | 300 | { |
302 | // Ignore | 301 | // Ignore |
@@ -311,8 +310,8 @@ void advice::run() const | |||
311 | tweetText = tweetText.substr(0, tweetLim - 1) + "…"; | 310 | tweetText = tweetText.substr(0, tweetLim - 1) + "…"; |
312 | } | 311 | } |
313 | 312 | ||
314 | //long media_id = client_->uploadMedia("image/png", (const char*) outputimg.data(), outputimg.length()); | 313 | long media_id = client_->uploadMedia("image/png", (const char*) outputimg.data(), outputimg.length()); |
315 | //client_->updateStatus(tweetText, {media_id}); | 314 | client_->updateStatus(tweetText, {media_id}); |
316 | 315 | ||
317 | std::cout << "Tweeted!" << std::endl << "Waiting..." << std::endl; | 316 | std::cout << "Tweeted!" << std::endl << "Waiting..." << std::endl; |
318 | 317 | ||