diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-09-19 09:59:17 -0400 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-09-19 09:59:17 -0400 |
| commit | afbe0bd9678619fe1b022075615229c875c0b98a (patch) | |
| tree | c08a5524d7f83c14013d3f660e575fdd9e51750f | |
| download | pokepronouns-afbe0bd9678619fe1b022075615229c875c0b98a.tar.gz pokepronouns-afbe0bd9678619fe1b022075615229c875c0b98a.tar.bz2 pokepronouns-afbe0bd9678619fe1b022075615229c875c0b98a.zip | |
Created bot
| -rw-r--r-- | .gitmodules | 6 | ||||
| -rw-r--r-- | CMakeLists.txt | 11 | ||||
| -rw-r--r-- | data.txt | 802 | ||||
| -rw-r--r-- | pokepronouns.cpp | 115 | ||||
| m--------- | vendor/libtwittercpp | 0 | ||||
| m--------- | vendor/yaml-cpp | 0 |
6 files changed, 934 insertions, 0 deletions
| diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..8aa7292 --- /dev/null +++ b/.gitmodules | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | [submodule "vendor/libtwittercpp"] | ||
| 2 | path = vendor/libtwittercpp | ||
| 3 | url = git@github.com:hatkirby/libtwittercpp.git | ||
| 4 | [submodule "vendor/yaml-cpp"] | ||
| 5 | path = vendor/yaml-cpp | ||
| 6 | url = git@github.com:jbeder/yaml-cpp.git | ||
| diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..8800bbc --- /dev/null +++ b/CMakeLists.txt | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | cmake_minimum_required (VERSION 3.1) | ||
| 2 | project (pokepronouns) | ||
| 3 | |||
| 4 | add_subdirectory(vendor/libtwittercpp) | ||
| 5 | add_subdirectory(vendor/yaml-cpp EXCLUDE_FROM_ALL) | ||
| 6 | |||
| 7 | include_directories(vendor/libtwittercpp/src vendor/yaml-cpp/include) | ||
| 8 | add_executable(pokepronouns pokepronouns.cpp) | ||
| 9 | set_property(TARGET pokepronouns PROPERTY CXX_STANDARD 11) | ||
| 10 | set_property(TARGET pokepronouns PROPERTY CXX_STANDARD_REQUIRED ON) | ||
| 11 | target_link_libraries(pokepronouns yaml-cpp twitter++) | ||
| diff --git a/data.txt b/data.txt new file mode 100644 index 0000000..f494dd4 --- /dev/null +++ b/data.txt | |||
| @@ -0,0 +1,802 @@ | |||
| 1 | Nidoran♂, male | ||
| 2 | Nidorino, male | ||
| 3 | Nidoking, male | ||
| 4 | Hitmonlee, male | ||
| 5 | Hitmonchan, male | ||
| 6 | Tauros, male | ||
| 7 | Hitmontop, male | ||
| 8 | Volbeat, male | ||
| 9 | Mothim, male | ||
| 10 | Gallade, male | ||
| 11 | Throh, male | ||
| 12 | Sawk, male | ||
| 13 | Rufflet, male | ||
| 14 | Braviary, male | ||
| 15 | Tyrogue, male | ||
| 16 | Latios, male legend | ||
| 17 | Tornadus, male legend | ||
| 18 | Thundurus, male legend | ||
| 19 | Landorus, male legend | ||
| 20 | Bulbasaur, both | ||
| 21 | Ivysaur, both | ||
| 22 | Venusaur, both | ||
| 23 | Charmander, both | ||
| 24 | Charmeleon, both | ||
| 25 | Charizard, both | ||
| 26 | Squirtle, both | ||
| 27 | Wartortle, both | ||
| 28 | Blastoise, both | ||
| 29 | Eevee, both | ||
| 30 | Vaporeon, both | ||
| 31 | Jolteon, both | ||
| 32 | Flareon, both | ||
| 33 | Omanyte, both | ||
| 34 | Omastar, both | ||
| 35 | Kabuto, both | ||
| 36 | Kabutops, both | ||
| 37 | Aerodactyl, both | ||
| 38 | Snorlax, both | ||
| 39 | Chikorita, both | ||
| 40 | Bayleef, both | ||
| 41 | Meganium, both | ||
| 42 | Cyndaquil, both | ||
| 43 | Quilava, both | ||
| 44 | Typhlosion, both | ||
| 45 | Totodile, both | ||
| 46 | Croconaw, both | ||
| 47 | Feraligatr, both | ||
| 48 | Togetic, both | ||
| 49 | Espeon, both | ||
| 50 | Umbreon, both | ||
| 51 | Treecko, both | ||
| 52 | Grovyle, both | ||
| 53 | Sceptile, both | ||
| 54 | Torchic, both | ||
| 55 | Combusken, both | ||
| 56 | Blaziken, both | ||
| 57 | Mudkip, both | ||
| 58 | Marshtomp, both | ||
| 59 | Swampert, both | ||
| 60 | Lileep, both | ||
| 61 | Cradily, both | ||
| 62 | Anorith, both | ||
| 63 | Armaldo, both | ||
| 64 | Relicanth, both | ||
| 65 | Turtwig, both | ||
| 66 | Grotle, both | ||
| 67 | Torterra, both | ||
| 68 | Chimchar, both | ||
| 69 | Monferno, both | ||
| 70 | Infernape, both | ||
| 71 | Piplup, both | ||
| 72 | Prinplup, both | ||
| 73 | Empoleon, both | ||
| 74 | Cranidos, both | ||
| 75 | Rampardos, both | ||
| 76 | Shieldon, both | ||
| 77 | Bastiodon, both | ||
| 78 | Combee, both | ||
| 79 | Lucario, both | ||
| 80 | Togekiss, both | ||
| 81 | Leafeon, both | ||
| 82 | Glaceon, both | ||
| 83 | Snivy, both | ||
| 84 | Servine, both | ||
| 85 | Serperior, both | ||
| 86 | Tepig, both | ||
| 87 | Pignite, both | ||
| 88 | Emboar, both | ||
| 89 | Oshawott, both | ||
| 90 | Dewott, both | ||
| 91 | Samurott, both | ||
| 92 | Pansage, both | ||
| 93 | Simisage, both | ||
| 94 | Pansear, both | ||
| 95 | Simisear, both | ||
| 96 | Panpour, both | ||
| 97 | Simipour, both | ||
| 98 | Tirtouga, both | ||
| 99 | Carracosta, both | ||
| 100 | Archen, both | ||
| 101 | Archeops, both | ||
| 102 | Zorua, both | ||
| 103 | Zoroark, both | ||
| 104 | Chespin, both | ||
| 105 | Quilladin, both | ||
| 106 | Chesnaught, both | ||
| 107 | Fennekin, both | ||
| 108 | Braixen, both | ||
| 109 | Delphox, both | ||
| 110 | Froakie, both | ||
| 111 | Frogadier, both | ||
| 112 | Greninja, both | ||
| 113 | Tyrunt, both | ||
| 114 | Tyrantrum, both | ||
| 115 | Amaura, both | ||
| 116 | Aurorus, both | ||
| 117 | Sylveon, both | ||
| 118 | Rowlet, both | ||
| 119 | Dartrix, both | ||
| 120 | Decidueye, both | ||
| 121 | Litten, both | ||
| 122 | Torracat, both | ||
| 123 | Incineroar, both | ||
| 124 | Popplio, both | ||
| 125 | Brionne, both | ||
| 126 | Primarina, both | ||
| 127 | Salandit, both | ||
| 128 | Togepi, both | ||
| 129 | Munchlax, both | ||
| 130 | Riolu, both | ||
| 131 | Growlithe, both | ||
| 132 | Arcanine, both | ||
| 133 | Abra, both | ||
| 134 | Kadabra, both | ||
| 135 | Alakazam, both | ||
| 136 | Machop, both | ||
| 137 | Machoke, both | ||
| 138 | Machamp, both | ||
| 139 | Electabuzz, both | ||
| 140 | Magmar, both | ||
| 141 | Makuhita, both | ||
| 142 | Hariyama, both | ||
| 143 | Electivire, both | ||
| 144 | Magmortar, both | ||
| 145 | Timburr, both | ||
| 146 | Gurdurr, both | ||
| 147 | Conkeldurr, both | ||
| 148 | Elekid, both | ||
| 149 | Magby, both | ||
| 150 | Caterpie, both | ||
| 151 | Metapod, both | ||
| 152 | Butterfree, both | ||
| 153 | Weedle, both | ||
| 154 | Kakuna, both | ||
| 155 | Beedril, both | ||
| 156 | Pidgey, both | ||
| 157 | Pidgeotto, both | ||
| 158 | Pidgeot, both | ||
| 159 | Rattata, both | ||
| 160 | Raticate, both | ||
| 161 | Spearow, both | ||
| 162 | Fearow, both | ||
| 163 | Ekans, both | ||
| 164 | Arbok, both | ||
| 165 | Pikachu, both | ||
| 166 | Raichu, both | ||
| 167 | Sandshrew, both | ||
| 168 | Sandslash, both | ||
| 169 | Zubat, both | ||
| 170 | Golbat, both | ||
| 171 | Oddish, both | ||
| 172 | Gloom, both | ||
| 173 | Vileplume, both | ||
| 174 | Paras, both | ||
| 175 | Parasect, both | ||
| 176 | Venonat, both | ||
| 177 | Venomoth, both | ||
| 178 | Diglett, both | ||
| 179 | Dugtrio, both | ||
| 180 | Meowth, both | ||
| 181 | Persian, both | ||
| 182 | Psyduck, both | ||
| 183 | Golduck, both | ||
| 184 | Mankey, both | ||
| 185 | Primeape, both | ||
| 186 | Poliwag, both | ||
| 187 | Poliwhirl, both | ||
| 188 | Poliwrath, both | ||
| 189 | Bellsprout, both | ||
| 190 | Weepinbell, both | ||
| 191 | Victreebel, both | ||
| 192 | Tentacool, both | ||
| 193 | Tentacruel, both | ||
| 194 | Geodude, both | ||
| 195 | Graveler, both | ||
| 196 | Golem, both | ||
| 197 | Ponyta, both | ||
| 198 | Rapidash, both | ||
| 199 | Slowpoke, both | ||
| 200 | Slowbro, both | ||
| 201 | Farfetch'd, both | ||
| 202 | Doduo, both | ||
| 203 | Dodrio, both | ||
| 204 | Seel, both | ||
| 205 | Dewgong, both | ||
| 206 | Grimer, both | ||
| 207 | Muk, both | ||
| 208 | Shellder, both | ||
| 209 | Cloyster, both | ||
| 210 | Gastly, both | ||
| 211 | Haunter, both | ||
| 212 | Gengar, both | ||
| 213 | Onix, both | ||
| 214 | Drowzee, both | ||
| 215 | Hypno, both | ||
| 216 | Krabby, both | ||
| 217 | Kingler, both | ||
| 218 | Exeggcute, both | ||
| 219 | Exeggutor, both | ||
| 220 | Cubone, both | ||
| 221 | Marowak, both | ||
| 222 | Lickitung, both | ||
| 223 | Koffing, both | ||
| 224 | Weezing, both | ||
| 225 | Rhyhorn, both | ||
| 226 | Rhydon, both | ||
| 227 | Tangela, both | ||
| 228 | Horsea, both | ||
| 229 | Seadra, both | ||
| 230 | Goldeen, both | ||
| 231 | Seaking, both | ||
| 232 | Mr. Mime, both | ||
| 233 | Scyther, both | ||
| 234 | Pinsir, both | ||
| 235 | Magikarp, both | ||
| 236 | Gyarados, both | ||
| 237 | Lapras, both | ||
| 238 | Dratini, both | ||
| 239 | Dragonair, both | ||
| 240 | Dragonite, both | ||
| 241 | Sentret, both | ||
| 242 | Furret, both | ||
| 243 | Hoothoot, both | ||
| 244 | Noctowl, both | ||
| 245 | Ledyba, both | ||
| 246 | Ledian, both | ||
| 247 | Spinarak, both | ||
| 248 | Ariados, both | ||
| 249 | Crobat, both | ||
| 250 | Chinchou, both | ||
| 251 | Lanturn, both | ||
| 252 | Natu, both | ||
| 253 | Xatu, both | ||
| 254 | Mareep, both | ||
| 255 | Flaaffy, both | ||
| 256 | Ampharos, both | ||
| 257 | Bellossom, both | ||
| 258 | Marill, both | ||
| 259 | Azumarill, both | ||
| 260 | Sudowoodo, both | ||
| 261 | Politoed, both | ||
| 262 | Hoppip, both | ||
| 263 | Skiploom, both | ||
| 264 | Jumpluff, both | ||
| 265 | Aipom, both | ||
| 266 | Sunkern, both | ||
| 267 | Sunflora, both | ||
| 268 | Yanma, both | ||
| 269 | Wooper, both | ||
| 270 | Quagsire, both | ||
| 271 | Murkrow, both | ||
| 272 | Slowking, both | ||
| 273 | Misdreavus, both | ||
| 274 | Wobbuffet, both | ||
| 275 | Girafarig, both | ||
| 276 | Pineco, both | ||
| 277 | Forretress, both | ||
| 278 | Dunsparce, both | ||
| 279 | Gligar, both | ||
| 280 | Steelix, both | ||
| 281 | Qwilfish, both | ||
| 282 | Scizor, both | ||
| 283 | Shuckle, both | ||
| 284 | Heracross, both | ||
| 285 | Sneasel, both | ||
| 286 | Teddiursa, both | ||
| 287 | Ursaring, both | ||
| 288 | Slugma, both | ||
| 289 | Magcargo, both | ||
| 290 | Swinub, both | ||
| 291 | Piloswine, both | ||
| 292 | Remoraid, both | ||
| 293 | Octillery, both | ||
| 294 | Delibird, both | ||
| 295 | Mantine, both | ||
| 296 | Skarmory, both | ||
| 297 | Houndour, both | ||
| 298 | Houndoom, both | ||
| 299 | Kingdra, both | ||
| 300 | Phanpy, both | ||
| 301 | Donphan, both | ||
| 302 | Stantler, both | ||
| 303 | Smeargle, both | ||
| 304 | Larvitar, both | ||
| 305 | Pupitar, both | ||
| 306 | Tyranitar, both | ||
| 307 | Poochyena, both | ||
| 308 | Mightyena, both | ||
| 309 | Zigzagoon, both | ||
| 310 | Linoone, both | ||
| 311 | Wurmple, both | ||
| 312 | Silcoon, both | ||
| 313 | Beautifly, both | ||
| 314 | Cascoon, both | ||
| 315 | Dustox, both | ||
| 316 | Lotad, both | ||
| 317 | Lombre, both | ||
| 318 | Ludicolo, both | ||
| 319 | Seedot, both | ||
| 320 | Nuzleaf, both | ||
| 321 | Shiftry, both | ||
| 322 | Taillow, both | ||
| 323 | Swellow, both | ||
| 324 | Wingull, both | ||
| 325 | Pelipper, both | ||
| 326 | Ralts, both | ||
| 327 | Kirlia, both | ||
| 328 | Gardevoir, both | ||
| 329 | Surskit, both | ||
| 330 | Masquerain, both | ||
| 331 | Shroomish, both | ||
| 332 | Breloom, both | ||
| 333 | Slakoth, both | ||
| 334 | Vigoroth, both | ||
| 335 | Slaking, both | ||
| 336 | Nincada, both | ||
| 337 | Ninjask, both | ||
| 338 | Whismur, both | ||
| 339 | Loudred, both | ||
| 340 | Exploud, both | ||
| 341 | Nosepass, both | ||
| 342 | Sableye, both | ||
| 343 | Mawile, both | ||
| 344 | Aron, both | ||
| 345 | Lairon, both | ||
| 346 | Aggron, both | ||
| 347 | Meditite, both | ||
| 348 | Medicham, both | ||
| 349 | Electrike, both | ||
| 350 | Manectric, both | ||
| 351 | Plusle, both | ||
| 352 | Minun, both | ||
| 353 | Roselia, both | ||
| 354 | Gulpin, both | ||
| 355 | Swalot, both | ||
| 356 | Carvanha, both | ||
| 357 | Sharpedo, both | ||
| 358 | Wailmer, both | ||
| 359 | Wailord, both | ||
| 360 | Numel, both | ||
| 361 | Camerupt, both | ||
| 362 | Torkoal, both | ||
| 363 | Spoink, both | ||
| 364 | Grumpig, both | ||
| 365 | Spinda, both | ||
| 366 | Trapinch, both | ||
| 367 | Vibrava, both | ||
| 368 | Flygon, both | ||
| 369 | Cacnea, both | ||
| 370 | Cacturne, both | ||
| 371 | Swablu, both | ||
| 372 | Altaria, both | ||
| 373 | Zangoose, both | ||
| 374 | Seviper, both | ||
| 375 | Barboach, both | ||
| 376 | Whiscash, both | ||
| 377 | Corphish, both | ||
| 378 | Crawdaunt, both | ||
| 379 | Feebas, both | ||
| 380 | Milotic, both | ||
| 381 | Castform, both | ||
| 382 | Kecleon, both | ||
| 383 | Shuppet, both | ||
| 384 | Banette, both | ||
| 385 | Duskull, both | ||
| 386 | Dusclops, both | ||
| 387 | Tropius, both | ||
| 388 | Chimecho, both | ||
| 389 | Absol, both | ||
| 390 | Snorunt, both | ||
| 391 | Glalie, both | ||
| 392 | Spheal, both | ||
| 393 | Sealeo, both | ||
| 394 | Walrein, both | ||
| 395 | Clamperl, both | ||
| 396 | Huntail, both | ||
| 397 | Gorebyss, both | ||
| 398 | Bagon, both | ||
| 399 | Shelgon, both | ||
| 400 | Salamence, both | ||
| 401 | Starly, both | ||
| 402 | Staravia, both | ||
| 403 | Staraptor, both | ||
| 404 | Bidoof, both | ||
| 405 | Bibarel, both | ||
| 406 | Kricketot, both | ||
| 407 | Kricketune, both | ||
| 408 | Shinx, both | ||
| 409 | Luxio, both | ||
| 410 | Luxray, both | ||
| 411 | Roserade, both | ||
| 412 | Burmy, both | ||
| 413 | Pachirisu, both | ||
| 414 | Buizel, both | ||
| 415 | Floatzel, both | ||
| 416 | Cherubi, both | ||
| 417 | Cherrim, both | ||
| 418 | Shellos, both | ||
| 419 | Gastrodon, both | ||
| 420 | Ambipom, both | ||
| 421 | Drifloon, both | ||
| 422 | Drifblim, both | ||
| 423 | Buneary, both | ||
| 424 | Lopunny, both | ||
| 425 | Mismagius, both | ||
| 426 | Honchkrow, both | ||
| 427 | Stunky, both | ||
| 428 | Skuntank, both | ||
| 429 | Chatot, both | ||
| 430 | Spiritomb, both | ||
| 431 | Gible, both | ||
| 432 | Gabite, both | ||
| 433 | Garchomp, both | ||
| 434 | Hippopotas, both | ||
| 435 | Hippowdon, both | ||
| 436 | Skorupi, both | ||
| 437 | Drapion, both | ||
| 438 | Croagunk, both | ||
| 439 | Toxicroak, both | ||
| 440 | Carnivine, both | ||
| 441 | Finneon, both | ||
| 442 | Lumineon, both | ||
| 443 | Snover, both | ||
| 444 | Abomasnow, both | ||
| 445 | Weavile, both | ||
| 446 | Lickilicky, both | ||
| 447 | Rhyperior, both | ||
| 448 | Tangrowth, both | ||
| 449 | Yanmega, both | ||
| 450 | Gliscor, both | ||
| 451 | Mamoswine, both | ||
| 452 | Probopass, both | ||
| 453 | Dusknoir, both | ||
| 454 | Patrat, both | ||
| 455 | Watchog, both | ||
| 456 | Lillipup, both | ||
| 457 | Herdier, both | ||
| 458 | Stoutland, both | ||
| 459 | Purrloin, both | ||
| 460 | Liepard, both | ||
| 461 | Munna, both | ||
| 462 | Musharna, both | ||
| 463 | Pidove, both | ||
| 464 | Tranquill, both | ||
| 465 | Unfezant, both | ||
| 466 | Blitzle, both | ||
| 467 | Zebstrika, both | ||
| 468 | Roggenrola, both | ||
| 469 | Boldore, both | ||
| 470 | Gigalith, both | ||
| 471 | Woobat, both | ||
| 472 | Swoobat, both | ||
| 473 | Drilbur, both | ||
| 474 | Excadrill, both | ||
| 475 | Audino, both | ||
| 476 | Tympole, both | ||
| 477 | Palpitoad, both | ||
| 478 | Seismitoad, both | ||
| 479 | Sewaddle, both | ||
| 480 | Swadloon, both | ||
| 481 | Leavanny, both | ||
| 482 | Venipede, both | ||
| 483 | Whirlipede, both | ||
| 484 | Scolipede, both | ||
| 485 | Cottonee, both | ||
| 486 | Whimsicott, both | ||
| 487 | Basculin, both | ||
| 488 | Sandile, both | ||
| 489 | Krokorok, both | ||
| 490 | Krookodile, both | ||
| 491 | Darumaka, both | ||
| 492 | Darmanitan, both | ||
| 493 | Maractus, both | ||
| 494 | Dwebble, both | ||
| 495 | Crustle, both | ||
| 496 | Scraggy, both | ||
| 497 | Scrafty, both | ||
| 498 | Sigilyph, both | ||
| 499 | Yamask, both | ||
| 500 | Cofagrigus, both | ||
| 501 | Trubbish, both | ||
| 502 | Garbodor, both | ||
| 503 | Solosis, both | ||
| 504 | Duosion, both | ||
| 505 | Reuniclus, both | ||
| 506 | Ducklett, both | ||
| 507 | Swanna, both | ||
| 508 | Vanillite, both | ||
| 509 | Vanillish, both | ||
| 510 | Vanilluxe, both | ||
| 511 | Deerling, both | ||
| 512 | Sawsbuck, both | ||
| 513 | Emolga, both | ||
| 514 | Karrablast, both | ||
| 515 | Escavalier, both | ||
| 516 | Foongus, both | ||
| 517 | Amoonguss, both | ||
| 518 | Frillish, both | ||
| 519 | Jellicent, both | ||
| 520 | Alomomola, both | ||
| 521 | Joltik, both | ||
| 522 | Galvantula, both | ||
| 523 | Ferroseed, both | ||
| 524 | Ferrothorn, both | ||
| 525 | Tynamo, both | ||
| 526 | Eelektrik, both | ||
| 527 | Eelektross, both | ||
| 528 | Elgyem, both | ||
| 529 | Beheeyem, both | ||
| 530 | Litwick, both | ||
| 531 | Lampent, both | ||
| 532 | Chandelure, both | ||
| 533 | Axew, both | ||
| 534 | Fraxure, both | ||
| 535 | Haxorus, both | ||
| 536 | Cubchoo, both | ||
| 537 | Beartic, both | ||
| 538 | Shelmet, both | ||
| 539 | Accelgor, both | ||
| 540 | Stunfisk, both | ||
| 541 | Mienfoo, both | ||
| 542 | Mienshao, both | ||
| 543 | Druddigon, both | ||
| 544 | Pawniard, both | ||
| 545 | Bisharp, both | ||
| 546 | Bouffalant, both | ||
| 547 | Heatmor, both | ||
| 548 | Durant, both | ||
| 549 | Deino, both | ||
| 550 | Zweilous, both | ||
| 551 | Hydreigon, both | ||
| 552 | Larvesta, both | ||
| 553 | Volcarona, both | ||
| 554 | Bunnelby, both | ||
| 555 | Diggersby, both | ||
| 556 | Fletchling, both | ||
| 557 | Fletchinder, both | ||
| 558 | Talonflame, both | ||
| 559 | Scatterbug, both | ||
| 560 | Spewpa, both | ||
| 561 | Vivillon, both | ||
| 562 | Skiddo, both | ||
| 563 | Gogoat, both | ||
| 564 | Pancham, both | ||
| 565 | Pangoro, both | ||
| 566 | Furfrou, both | ||
| 567 | Espurr, both | ||
| 568 | Meowstic, both | ||
| 569 | Honedge, both | ||
| 570 | Doublade, both | ||
| 571 | Aegislash, both | ||
| 572 | Spritzee, both | ||
| 573 | Aromatisse, both | ||
| 574 | Swirlix, both | ||
| 575 | Slurpuff, both | ||
| 576 | Inkay, both | ||
| 577 | Malamar, both | ||
| 578 | Binacle, both | ||
| 579 | Barbaracle, both | ||
| 580 | Skrelp, both | ||
| 581 | Dragalge, both | ||
| 582 | Clauncher, both | ||
| 583 | Clawitzer, both | ||
| 584 | Helioptile, both | ||
| 585 | Heliolisk, both | ||
| 586 | Hawlucha, both | ||
| 587 | Dedenne, both | ||
| 588 | Goomy, both | ||
| 589 | Sliggoo, both | ||
| 590 | Goodra, both | ||
| 591 | Klefki, both | ||
| 592 | Phantump, both | ||
| 593 | Trevenant, both | ||
| 594 | Pumpkaboo, both | ||
| 595 | Gourgeist, both | ||
| 596 | Bergmite, both | ||
| 597 | Avalugg, both | ||
| 598 | Noibat, both | ||
| 599 | Noivern, both | ||
| 600 | Pikipek, both | ||
| 601 | Trumbeak, both | ||
| 602 | Toucannon, both | ||
| 603 | Yungoos, both | ||
| 604 | Gumshoos, both | ||
| 605 | Grubbin, both | ||
| 606 | Charjabug, both | ||
| 607 | Vikavolt, both | ||
| 608 | Crabrawler, both | ||
| 609 | Crabominable, both | ||
| 610 | Cutiefly, both | ||
| 611 | Ribombee, both | ||
| 612 | Rockruff, both | ||
| 613 | Lycanroc, both | ||
| 614 | Wishiwashi, both | ||
| 615 | Mareanie, both | ||
| 616 | Toxapex, both | ||
| 617 | Mudbray, both | ||
| 618 | Mudsdale, both | ||
| 619 | Dewpider, both | ||
| 620 | Araquanid, both | ||
| 621 | Fomantis, both | ||
| 622 | Lurantis, both | ||
| 623 | Morelull, both | ||
| 624 | Shiinotic, both | ||
| 625 | Stufful, both | ||
| 626 | Bewear, both | ||
| 627 | Oranguru, both | ||
| 628 | Passimian, both | ||
| 629 | Wimpod, both | ||
| 630 | Golisopod, both | ||
| 631 | Sandygast, both | ||
| 632 | Palossand, both | ||
| 633 | Pyukumuku, both | ||
| 634 | Komala, both | ||
| 635 | Turtonator, both | ||
| 636 | Togedemaru, both | ||
| 637 | Mimikyu, both | ||
| 638 | Bruxish, both | ||
| 639 | Drampa, both | ||
| 640 | Jangmo-o, both | ||
| 641 | Hakamo-o, both | ||
| 642 | Kommo-o, both | ||
| 643 | Pichu, both | ||
| 644 | Wynaut, both | ||
| 645 | Budew, both | ||
| 646 | Chingling, both | ||
| 647 | Bonsley, both | ||
| 648 | Mime Jr., both | ||
| 649 | Mantyke, both | ||
| 650 | Heatran, both | ||
| 651 | Clefairy, both | ||
| 652 | Clefable, both | ||
| 653 | Vulpix, both | ||
| 654 | Ninetales, both | ||
| 655 | Jigglypuff, both | ||
| 656 | Wigglytuff, both | ||
| 657 | Snubbull, both | ||
| 658 | Granbull, both | ||
| 659 | Corsola, both | ||
| 660 | Skitty, both | ||
| 661 | Delcatty, both | ||
| 662 | Luvdisc, both | ||
| 663 | Glameow, both | ||
| 664 | Purugly, both | ||
| 665 | Minccino, both | ||
| 666 | Cinccino, both | ||
| 667 | Gothita, both | ||
| 668 | Gothorita, both | ||
| 669 | Gothitelle, both | ||
| 670 | Oricorio, both | ||
| 671 | Comfey, both | ||
| 672 | Cleffa, both | ||
| 673 | Igglybuff, both | ||
| 674 | Azurill, both | ||
| 675 | Litleo, both | ||
| 676 | Pyroar, both | ||
| 677 | Nidoran♀, female | ||
| 678 | Chansey, female | ||
| 679 | Kangaskhan, female | ||
| 680 | Jynx, female | ||
| 681 | Miltank, female | ||
| 682 | Blissey, female | ||
| 683 | Illumise, female | ||
| 684 | Wormadam, female | ||
| 685 | Vespiquen, female | ||
| 686 | Froslass, female | ||
| 687 | Petilil, female | ||
| 688 | Lilligant, female | ||
| 689 | Vullaby, female | ||
| 690 | Mandibuzz, female | ||
| 691 | Flabébé, female | ||
| 692 | Floette, female | ||
| 693 | Florges, female | ||
| 694 | Salazzle, female | ||
| 695 | Bounsweet, female | ||
| 696 | Steenee, female | ||
| 697 | Tsareena, female | ||
| 698 | Nidorina, female | ||
| 699 | Nidoqueen, female | ||
| 700 | Smoochum, female | ||
| 701 | Latias, female legend | ||
| 702 | Happiny, female | ||
| 703 | Cresselia, female legend | ||
| 704 | Magnemite, genderless | ||
| 705 | Magneton, genderless | ||
| 706 | Voltorb, genderless | ||
| 707 | Electrode, genderless | ||
| 708 | Staryu, genderless | ||
| 709 | Starmie, genderless | ||
| 710 | Porygon, genderless | ||
| 711 | Porygon2, genderless | ||
| 712 | Shedinja, genderless | ||
| 713 | Lunatone, genderless | ||
| 714 | Solrock, genderless | ||
| 715 | Baltoy, genderless | ||
| 716 | Claydol, genderless | ||
| 717 | Beldum, genderless | ||
| 718 | Metang, genderless | ||
| 719 | Metagross, genderless | ||
| 720 | Bronzor, genderless | ||
| 721 | Bronzong, genderless | ||
| 722 | Magnezone, genderless | ||
| 723 | Porygon-Z, genderless | ||
| 724 | Rotom, genderless | ||
| 725 | Phione, genderless | ||
| 726 | Manaphy, genderless | ||
| 727 | Klink, genderless | ||
| 728 | Klang, genderless | ||
| 729 | Klinklang, genderless | ||
| 730 | Cryogonal, genderless | ||
| 731 | Golett, genderless | ||
| 732 | Golurk, genderless | ||
| 733 | Carbink, genderless | ||
| 734 | Minior, genderless | ||
| 735 | Dhelmise, genderless | ||
| 736 | Ditto, genderless | ||
| 737 | Articuno, genderless | ||
| 738 | Zapdos, genderless | ||
| 739 | Moltres, genderless | ||
| 740 | Mewtwo, genderless | ||
| 741 | Mew, genderless | ||
| 742 | Unown, genderless | ||
| 743 | Raikou, genderless | ||
| 744 | Entei, genderless | ||
| 745 | Suicune, genderless | ||
| 746 | Lugia, genderless | ||
| 747 | Ho-Oh, genderless | ||
| 748 | Celebi, genderless | ||
| 749 | Regirock, genderless | ||
| 750 | Regice, genderless | ||
| 751 | Registeel, genderless | ||
| 752 | Kyogre, genderless | ||
| 753 | Groudon, genderless | ||
| 754 | Rayquaza, genderless | ||
| 755 | Jirachi, genderless | ||
| 756 | Deoxys, genderless | ||
| 757 | Uxie, genderless | ||
| 758 | Mesprit, genderless | ||
| 759 | Azelf, genderless | ||
| 760 | Dialga, genderless | ||
| 761 | Palkia, genderless | ||
| 762 | Regigigas, genderless | ||
| 763 | Giratina, genderless | ||
| 764 | Darkrai, genderless | ||
| 765 | Shaymin, genderless | ||
| 766 | Arceus, genderless | ||
| 767 | Victini, genderless | ||
| 768 | Cobalion, genderless | ||
| 769 | Terrakion, genderless | ||
| 770 | Virizion, genderless | ||
| 771 | Reshiram, genderless | ||
| 772 | Zekrom, genderless | ||
| 773 | Kyurem, genderless | ||
| 774 | Keldeo, genderless | ||
| 775 | Meloetta, genderless | ||
| 776 | Genesect, genderless | ||
| 777 | Xerneas, genderless | ||
| 778 | Yveltal, genderless | ||
| 779 | Zygarde, genderless | ||
| 780 | Diancie, genderless | ||
| 781 | Hoopa, genderless | ||
| 782 | Volcanion, genderless | ||
| 783 | Type: Null, genderless | ||
| 784 | Silvally, genderless | ||
| 785 | Tapu Koko, genderless | ||
| 786 | Tapu Lele, genderless | ||
| 787 | Tapu Bulu, genderless | ||
| 788 | Tapu Fini, genderless | ||
| 789 | Cosmog, genderless | ||
| 790 | Cosmoem, genderless | ||
| 791 | Solgaleo, genderless | ||
| 792 | Lunala, genderless | ||
| 793 | Nihilego, genderless | ||
| 794 | Buzzwole, genderless | ||
| 795 | Pheromosa, genderless | ||
| 796 | Xurkitree, genderless | ||
| 797 | Celesteela, genderless | ||
| 798 | Kartana, genderless | ||
| 799 | Guzzlord, genderless | ||
| 800 | Necrozma, genderless | ||
| 801 | Magearna, genderless | ||
| 802 | Marshadow, genderless \ No newline at end of file | ||
| diff --git a/pokepronouns.cpp b/pokepronouns.cpp new file mode 100644 index 0000000..974889e --- /dev/null +++ b/pokepronouns.cpp | |||
| @@ -0,0 +1,115 @@ | |||
| 1 | #include <iostream> | ||
| 2 | #include <string> | ||
| 3 | #include <vector> | ||
| 4 | #include <map> | ||
| 5 | #include <twitter.h> | ||
| 6 | #include <random> | ||
| 7 | #include <chrono> | ||
| 8 | #include <thread> | ||
| 9 | #include <fstream> | ||
| 10 | #include <yaml-cpp/yaml.h> | ||
| 11 | |||
| 12 | int main(int argc, char** argv) | ||
| 13 | { | ||
| 14 | if (argc != 2) | ||
| 15 | { | ||
| 16 | std::cout << "usage: pokepronouns [configfile]" << std::endl; | ||
| 17 | return -1; | ||
| 18 | } | ||
| 19 | |||
| 20 | std::string configfile(argv[1]); | ||
| 21 | YAML::Node config = YAML::LoadFile(configfile); | ||
| 22 | |||
| 23 | twitter::auth auth; | ||
| 24 | auth.setConsumerKey(config["consumer_key"].as<std::string>()); | ||
| 25 | auth.setConsumerSecret(config["consumer_secret"].as<std::string>()); | ||
| 26 | auth.setAccessKey(config["access_key"].as<std::string>()); | ||
| 27 | auth.setAccessSecret(config["access_secret"].as<std::string>()); | ||
| 28 | |||
| 29 | twitter::client client(auth); | ||
| 30 | |||
| 31 | std::vector<std::string> pokemon; | ||
| 32 | std::map<std::string, std::string> genders; | ||
| 33 | std::ifstream datafile(config["data"].as<std::string>()); | ||
| 34 | if (!datafile.is_open()) | ||
| 35 | { | ||
| 36 | std::cout << "Could not find data file." << std::endl; | ||
| 37 | return 1; | ||
| 38 | } | ||
| 39 | |||
| 40 | bool newgroup = true; | ||
| 41 | std::string line; | ||
| 42 | std::string curgroup; | ||
| 43 | while (getline(datafile, line)) | ||
| 44 | { | ||
| 45 | if (line.back() == '\r') | ||
| 46 | { | ||
| 47 | line.pop_back(); | ||
| 48 | } | ||
| 49 | |||
| 50 | int divider = line.find_first_of(","); | ||
| 51 | std::string name = line.substr(0, divider); | ||
| 52 | std::string gender = line.substr(divider + 2); | ||
| 53 | |||
| 54 | pokemon.push_back(name); | ||
| 55 | genders[name] = gender; | ||
| 56 | } | ||
| 57 | |||
| 58 | std::random_device randomDevice; | ||
| 59 | std::mt19937 rng{randomDevice()}; | ||
| 60 | std::uniform_int_distribution<int> dist(0, pokemon.size() - 1); | ||
| 61 | |||
| 62 | for (;;) | ||
| 63 | { | ||
| 64 | std::cout << "Generating tweet" << std::endl; | ||
| 65 | |||
| 66 | std::string choice = pokemon[dist(rng)]; | ||
| 67 | std::string gender = genders[choice]; | ||
| 68 | |||
| 69 | std::string result; | ||
| 70 | if (gender == "both") | ||
| 71 | { | ||
| 72 | result = "Because not all {POKE} are male, it is incorrect to refer to a generic {POKE} as \"he\". Only a specific {POKE} may be a \"he\"."; | ||
| 73 | } else if (gender == "male") | ||
| 74 | { | ||
| 75 | result = "As there are multiple {POKE}, it is incorrect to refer to a generic one as \"he\". It is acceptable to refer to a specific one as such."; | ||
| 76 | } else if (gender == "female") | ||
| 77 | { | ||
| 78 | result = "As there are multiple {POKE}, it is incorrect to refer to a generic one as \"she\". It is acceptable to refer to a specific one as such."; | ||
| 79 | } else if (gender == "male legend") | ||
| 80 | { | ||
| 81 | result = "Because {POKE} is legendary and gendered, it is acceptable to refer to it as \"he\"."; | ||
| 82 | } else if (gender == "female legend") | ||
| 83 | { | ||
| 84 | result = "Because {POKE} is legendary and gendered, it is acceptable to refer to it as \"she\"."; | ||
| 85 | } else if (gender == "genderless") | ||
| 86 | { | ||
| 87 | result = "{POKE} is genderless. It is incorrect to ever refer to it as \"he\" or \"she\"."; | ||
| 88 | } | ||
| 89 | |||
| 90 | int tknloc; | ||
| 91 | while ((tknloc = result.find("{POKE}")) != std::string::npos) | ||
| 92 | { | ||
| 93 | std::string token = result.substr(tknloc+1, result.find("}")-tknloc-1); | ||
| 94 | |||
| 95 | result.replace(tknloc, result.find("}")-tknloc+1, choice); | ||
| 96 | } | ||
| 97 | |||
| 98 | result.resize(140); | ||
| 99 | |||
| 100 | try | ||
| 101 | { | ||
| 102 | client.updateStatus(result); | ||
| 103 | } catch (const twitter::twitter_error& e) | ||
| 104 | { | ||
| 105 | std::cout << "Twitter error: " << e.what() << std::endl; | ||
| 106 | } | ||
| 107 | |||
| 108 | std::cout << result << std::endl; | ||
| 109 | std::cout << "Waiting..." << std::endl; | ||
| 110 | |||
| 111 | std::this_thread::sleep_for(std::chrono::hours(11)); | ||
| 112 | |||
| 113 | std::cout << std::endl; | ||
| 114 | } | ||
| 115 | } | ||
| diff --git a/vendor/libtwittercpp b/vendor/libtwittercpp new file mode 160000 | |||
| Subproject df906121dd862c0f704e44f28ee079158c431c4 | |||
| diff --git a/vendor/yaml-cpp b/vendor/yaml-cpp new file mode 160000 | |||
| Subproject beb44b872c07c74556314e730c6f20a00b32e8e | |||
