From a76e81ee8bcbad87c9eb58cdb25452cae65bd0c7 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Fri, 23 Dec 2022 11:09:58 +0000 Subject: Bot is now a Mastodon bot --- difference.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'difference.h') diff --git a/difference.h b/difference.h index bccf9ab..6a03f84 100644 --- a/difference.h +++ b/difference.h @@ -7,8 +7,9 @@ #include #include #include -#include +#include #include +#include "imagenet.h" class difference { public: @@ -26,8 +27,6 @@ private: std::pair getImagesForNoun(verbly::word pictured) const; - Magick::Image getImageAtUrl(std::string url) const; - std::pair getOppositeIdentifiers() const; Magick::Image composeImage( @@ -36,9 +35,9 @@ private: Magick::Image image2, verbly::word word2) const; - std::string generateTweetText(verbly::word word1, verbly::word word2) const; + std::string generatePostText(verbly::word word1, verbly::word word2) const; - void sendTweet(std::string text, Magick::Image image) const; + void sendPost(std::string text, Magick::Image image) const; class could_not_get_images : public std::runtime_error { public: @@ -50,8 +49,11 @@ private: std::mt19937& rng_; std::unique_ptr database_; - std::unique_ptr client_; + std::unique_ptr instance_; + std::unique_ptr connection_; + std::unique_ptr imagenet_; std::string fontfile_; + std::string tempfile_; }; -- cgit 1.4.1