diff options
Diffstat (limited to 'furries.cpp')
-rw-r--r-- | furries.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/furries.cpp b/furries.cpp index 6e701d4..9f95dc9 100644 --- a/furries.cpp +++ b/furries.cpp | |||
@@ -94,10 +94,6 @@ int main(int argc, char** argv) | |||
94 | srand(time(NULL)); | 94 | srand(time(NULL)); |
95 | 95 | ||
96 | YAML::Node config = YAML::LoadFile("config.yml"); | 96 | YAML::Node config = YAML::LoadFile("config.yml"); |
97 | const char* host = config["host"].as<std::string>().c_str(); | ||
98 | const char* user = config["user"].as<std::string>().c_str(); | ||
99 | const char* pass = config["pass"].as<std::string>().c_str(); | ||
100 | const char* db = config["db"].as<std::string>().c_str(); | ||
101 | 97 | ||
102 | twitCurl twitter; | 98 | twitCurl twitter; |
103 | twitter.getOAuth().setConsumerKey(config["consumer_key"].as<std::string>()); | 99 | twitter.getOAuth().setConsumerKey(config["consumer_key"].as<std::string>()); |
@@ -135,8 +131,6 @@ int main(int argc, char** argv) | |||
135 | std::string result = action->compile(); | 131 | std::string result = action->compile(); |
136 | result.resize(140); | 132 | result.resize(140); |
137 | 133 | ||
138 | std::cout << result << std::endl; | ||
139 | /* | ||
140 | std::string replyMsg; | 134 | std::string replyMsg; |
141 | if (twitter.statusUpdate(result)) | 135 | if (twitter.statusUpdate(result)) |
142 | { | 136 | { |
@@ -145,9 +139,9 @@ int main(int argc, char** argv) | |||
145 | } else { | 139 | } else { |
146 | twitter.getLastCurlError(replyMsg); | 140 | twitter.getLastCurlError(replyMsg); |
147 | std::cout << "Curl error: " << replyMsg << std::endl; | 141 | std::cout << "Curl error: " << replyMsg << std::endl; |
148 | }*/ | 142 | } |
149 | 143 | ||
150 | std::cout << "Waiting" << std::endl; | 144 | std::cout << "Waiting" << std::endl; |
151 | sleep(/*60 * 60 * */ 3); | 145 | sleep(60 * 60 * 3); |
152 | } | 146 | } |
153 | } | 147 | } |