diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2022-11-14 13:27:55 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2022-11-14 13:27:55 -0500 |
commit | e1a9a5943990db19618af5a4ee4f675211f31491 (patch) | |
tree | fe7b8ba3f1b45203bbf0aad82f604566af3708ed /sap.h | |
parent | da3bc860f66d34f233028e819beee32dd1c43dd8 (diff) | |
download | sap-e1a9a5943990db19618af5a4ee4f675211f31491.tar.gz sap-e1a9a5943990db19618af5a4ee4f675211f31491.tar.bz2 sap-e1a9a5943990db19618af5a4ee4f675211f31491.zip |
Bot now posts to Mastodon instead of Twitter
Diffstat (limited to 'sap.h')
-rw-r--r-- | sap.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sap.h b/sap.h index 5288e57..44ece23 100644 --- a/sap.h +++ b/sap.h | |||
@@ -5,7 +5,7 @@ | |||
5 | #include <string> | 5 | #include <string> |
6 | #include <memory> | 6 | #include <memory> |
7 | #include <Magick++.h> | 7 | #include <Magick++.h> |
8 | #include <twitter.h> | 8 | #include <mastodonpp.hpp> |
9 | #include <rawr.h> | 9 | #include <rawr.h> |
10 | #include "designer.h" | 10 | #include "designer.h" |
11 | #include "director.h" | 11 | #include "director.h" |
@@ -21,13 +21,15 @@ public: | |||
21 | 21 | ||
22 | private: | 22 | private: |
23 | 23 | ||
24 | void sendTweet(Magick::Image image) const; | 24 | void sendTweet(Magick::Image image, const std::string& text) const; |
25 | 25 | ||
26 | std::mt19937& rng_; | 26 | std::mt19937& rng_; |
27 | std::unique_ptr<twitter::client> client_; | 27 | std::unique_ptr<mastodonpp::Instance> instance_; |
28 | std::unique_ptr<mastodonpp::Connection> connection_; | ||
28 | rawr kgramstats_; | 29 | rawr kgramstats_; |
29 | std::unique_ptr<designer> layout_; | 30 | std::unique_ptr<designer> layout_; |
30 | std::unique_ptr<director> director_; | 31 | std::unique_ptr<director> director_; |
32 | std::string tempfile_; | ||
31 | 33 | ||
32 | }; | 34 | }; |
33 | 35 | ||