hangoutsbot で スクリーンショットを(plugins.image_screenshot)

phantomjsを入れる

https://github.com/hangoutsbot/hangoutsbot/wiki/Image-Screenshot-Plugin


debianでは標準的なレポジトリになさそうなので公式サイトからDLしてきて入れた

# wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
# tar jxvf phantomjs-2.1.1-linux-x86_64.tar.bz2
# mv phantomjs-2.1.1-linux-x86_64 /usr/local/share/
# ln -sf /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin/

/etc/init.d/hangoutsbot では /usr/local/share/ にパスが通っていなかったのでパスを追加し
た。


使い方

/bot pluginload plugins.image_screenshot
/bot seturl http://www.goo.ne.jp
/bot screenshot