Upgrade to Pro — share decks privately, control downloads, hide ads and more …

CrystalでTwitter botを作ってみた / Create a Twitter b...

CrystalでTwitter botを作ってみた / Create a Twitter bot in Crystal

東京 Crystal 勉強会 #1 in 五反田

Mihyaeru

July 31, 2015
Tweet

More Decks by Mihyaeru

Other Decks in Programming

Transcript

  1. © 2015 Mihyaeru ͓લͩΕΑ • ϛώϟΤϧ @mihyaeru21 • ࠷ۙ͸SwiftͱPerlΛ൒ʑͰ •

    ͨ·ʹPython੎ • YAPCͰొஃ͢Δ͜ͱʹͳͬͯΨΫϒϧ 2
  2. © 2015 Mihyaeru ࡞ͬͯΈͨܥLT • ܀΅ͬͱ https://twitter.com/crybot21 • https://github.com/mihyaeru21/crybot •

    UserStreamʹܨ͍Ͱϝϯγϣϯͱಉ͡಺༰Λݴ ͍ฦ͚ͩ͢ • ϩʔΧϧͰಈ͔ͯ͠Δ͔Β͙͢ಈ͔ͳ͘ͳΔӡ໋ 3
  3. © 2015 Mihyaeru ࢖ͬͨඪ४Ϟδϡʔϧ • cgi • env • http

    • json • oauth • openssl • secure_random • socket • time 8
  4. © 2015 Mihyaeru http (./client ./request) • ΧδϡΞϧʹ࢖͑Δ • ௨৴ͷ్தͰίʔϧόοΫͱ͔ʹσʔλΛྲྀ

    ͯ͘͠ΕΔ΍͕ͭ(ݟͨݶΓ͸)ແ͔ͬͨ • υΩϡϝϯτ͔ΒભҠ͢Διʔείʔυ͕Ϧ Ϧʔε൛ΑΓ৽ͯ͘͠ϋϚͬͨ 11