Skip to content

Instantly share code, notes, and snippets.

@tamanugi
Last active December 11, 2016 10:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tamanugi/e8c6dd72ee716fc80df9425efdfab461 to your computer and use it in GitHub Desktop.
Save tamanugi/e8c6dd72ee716fc80df9425efdfab461 to your computer and use it in GitHub Desktop.
[botkit × Nightmarejs] 指定されたURLのスクリーンショットをとるチャットボットを作ってみた ref: http://qiita.com/tamanugi/items/f73601365589c3e5e79d
$ npm install
$ token=<your bot token> node bot.js
@chatbot capture http://hoge.com
controller.hears(['capture <(https?://.*)>'],
Nightmare();
.goto(url)
.screenshot('path/to/image.png')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment