Created
June 5, 2018 20:43
-
-
Save shige-ta/3d571bfe762c4e97c2b9dac094cd7889 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const dash_button = require('node-dash-button'); | |
const exec = require('child_process').exec; | |
const dash = dash_button('xx:xx:xx:xx:xx:xx', null, null, 'all'); | |
dash.on('detected', () => { | |
exec("python3 screenshot.py") | |
console.log("カシャ!"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment