From 18742d79e1de863889521c492e938491489316fe Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Fri, 3 Feb 2017 13:56:19 -0500 Subject: Created bot --- advice.h | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 advice.h (limited to 'advice.h') diff --git a/advice.h b/advice.h new file mode 100644 index 0000000..33dc531 --- /dev/null +++ b/advice.h @@ -0,0 +1,46 @@ +#ifndef ADVICE_H_5934AC1B +#define ADVICE_H_5934AC1B + +#include +#include +#include +#include +#include +#include +#include +#include "sentence.h" + +class advice { +public: + + advice( + std::string configFile, + std::mt19937& rng); + + void run() const; + +private: + + class could_not_get_images : public std::runtime_error { + public: + + could_not_get_images() : std::runtime_error("Could not get images for noun") + { + } + }; + + verbly::word generateImageNoun() const; + + Magick::Image getImageForNoun(verbly::word pictured) const; + + Magick::Image layoutImage(Magick::Image bg, std::string title) const; + + void sendTweet(Magick::Image pic, std::string title) const; + + std::mt19937& rng_; + std::unique_ptr database_; + std::unique_ptr generator_; + std::unique_ptr client_; +}; + +#endif /* end of include guard: ADVICE_H_5934AC1B */ -- cgit 1.4.1