about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt2
-rw-r--r--README.md9
-rw-r--r--wordplay.cpp3
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)
16add_executable(wordplay wordplay.cpp) 16add_executable(wordplay wordplay.cpp)
17set_property(TARGET wordplay PROPERTY CXX_STANDARD 11) 17set_property(TARGET wordplay PROPERTY CXX_STANDARD 11)
18set_property(TARGET wordplay PROPERTY CXX_STANDARD_REQUIRED ON) 18set_property(TARGET wordplay PROPERTY CXX_STANDARD_REQUIRED ON)
19target_link_libraries(wordplay ${sqlite3_LIBRARIES} yaml-cpp twitcurl curl verbly) 19target_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
2wordplay 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>&mdash; 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
7It 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
9The 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
9int main(int argc, char** argv) 10int 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}