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

A small Bot which supports my confortable “Music Life"

ar_tama
April 19, 2019

A small Bot which supports my confortable “Music Life"

A small Bot which supports my confortable “Music Life" / 快適なミュージックライフを支える小さなBotの話

ar_tama

April 19, 2019
Tweet

More Decks by ar_tama

Other Decks in Technology

Transcript

  1. շదͳ
    ϛϡʔδοΫϥΠϑΛࢧ͑Δ
    খ͞ͳBotͷ࿩
    A small Bot
    which supports my confortable “Music Life“

    View full-size slide

  2. @ar_tama
    ͋Βͨ·

    View full-size slide

  3. Japan Mochimochi
    Association

    View full-size slide

  4. Do you like Music?

    View full-size slide

  5. DVSMIUUQTBQJTQPUJGZDPNWNFUSBDLTcKRUPUBM
    2672 Songs
    (w/o songs from playlists)
    ˞ʙ
    ϓϨΠϦετ͝ͱ௥Ճ͍ͯ͠Δۂ਺ͱ
    ιϯάʹ௥Ճ͠ͳ͔ͬͨۂ਺͸Χ΢ϯτ͍ͯ͠ͳ͍ͷͰ
    ௌ͍ͨۂ਺ͳΒܰ͘਺ສΛ௒͍͑ͯΔ͸ͣʜ

    View full-size slide

  6. DVSMIUUQTBQJTQPUJGZDPNWNFUSBDLTcKR<>USBDLBSUJTUT<>OBNFcVOJRcXDM
    1891 Artists

    View full-size slide

  7. 5PPPPPPPPNBOZ

    View full-size slide

  8. I’m looking forward XXX’s Japan tour..
    What is time the ticket sales?

    View full-size slide

  9. ~Half years later~

    View full-size slide

  10. ʊਓਓਓਓਓਓʊ
    ʼɹSold outɹʻ
    ʉ:?:?:?:?:ʉ

    View full-size slide

  11. 2344
    "5PPIBSEUPpOEBMMNFEJB

    View full-size slide

  12. ௥͍͖Εͳ͍ΜͰ͢·͡Ͱʜ

    View full-size slide

  13. Nofify me ‘͍͍ײ͡’ʙʂ

    View full-size slide

  14. w ʮ͓͍͍ͬͳʯͱࢥͬͨΞʔςΟετΛϝϞ͢Δײ֮Ͱొ࿥
    w ҰఆपظͰ#JOH/FXT4FBSDI"1*Λୟ͍ͯ഑৴
    w ʢ·ͣ͸ʣओʹཉ͍͠ͷ͸དྷ೔৘ใ͚ͩͳͷͰ

    ೔ຊͷχϡʔεͷΈ

    View full-size slide

  15. Gems
    •HTTParty
    •Find the newsʗWebhook
    •Slack-Ruby-Bot
    •Bot

    View full-size slide

  16. Services
    •Bing News Search API
    •Free Plan
    •3req/1sec
    •3000req/1mon

    View full-size slide

  17. Services
    •Heroku
    •Web dyno + CronʢCron To Goʣ
    •ʴ UptimeBot

    View full-size slide

  18. (Actually) Call News API
    using registered queries,
    that’s all

    View full-size slide

  19. High versatility

    View full-size slide