diff options
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | README.md | 9 | ||||
-rw-r--r-- | wordplay.cpp | 3 |
3 files changed, 12 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a7693ff..0ef9832 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -16,4 +16,4 @@ include_directories(vendor/verbly/lib) | |||
16 | add_executable(wordplay wordplay.cpp) | 16 | add_executable(wordplay wordplay.cpp) |
17 | set_property(TARGET wordplay PROPERTY CXX_STANDARD 11) | 17 | set_property(TARGET wordplay PROPERTY CXX_STANDARD 11) |
18 | set_property(TARGET wordplay PROPERTY CXX_STANDARD_REQUIRED ON) | 18 | set_property(TARGET wordplay PROPERTY CXX_STANDARD_REQUIRED ON) |
19 | target_link_libraries(wordplay ${sqlite3_LIBRARIES} yaml-cpp twitcurl curl verbly) | 19 | target_link_libraries(wordplay verbly ${sqlite3_LIBRARIES} yaml-cpp twitcurl curl) |
diff --git a/README.md b/README.md new file mode 100644 index 0000000..85500be --- /dev/null +++ b/README.md | |||
@@ -0,0 +1,9 @@ | |||
1 | # wordplay | ||
2 | wordplay is a twitter bot that generates rhyming jokes similar to this: | ||
3 | |||
4 | <blockquote class="twitter-tweet" data-lang="en"><p lang="en" dir="ltr">What do you call a standard disobedience?<br>A regulation insubordination!</p>— playing with saying (@eventhenotion) <a href="https://twitter.com/eventhenotion/status/709471468527071232">March 14, 2016</a></blockquote> | ||
5 | <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script> | ||
6 | |||
7 | It uses my natural language generation library [verbly](https://github.com/hatkirby/verbly) to pick words, [YAMLcpp](https://github.com/jbeder/yaml-cpp) to read a configuration file, and [twitcurl](https://github.com/swatkat/twitcurl) to send the status updates to Twitter. | ||
8 | |||
9 | The canonical wordplay handle is [@eventhenotion](https://twitter.com/eventhenotion). | ||
diff --git a/wordplay.cpp b/wordplay.cpp index 4f621a1..0d48e3e 100644 --- a/wordplay.cpp +++ b/wordplay.cpp | |||
@@ -5,6 +5,7 @@ | |||
5 | #include <algorithm> | 5 | #include <algorithm> |
6 | #include <twitcurl.h> | 6 | #include <twitcurl.h> |
7 | #include <verbly.h> | 7 | #include <verbly.h> |
8 | #include <unistd.h> | ||
8 | 9 | ||
9 | int main(int argc, char** argv) | 10 | int main(int argc, char** argv) |
10 | { | 11 | { |
@@ -84,4 +85,4 @@ int main(int argc, char** argv) | |||
84 | 85 | ||
85 | sleep(60 * 60 * 3); | 86 | sleep(60 * 60 * 3); |
86 | } | 87 | } |
87 | } \ No newline at end of file | 88 | } |