first commit

This commit is contained in:
s.golasch
2023-08-01 14:20:25 +02:00
commit e142078e83
17 changed files with 639 additions and 0 deletions

10
lightcontroller.js Normal file
View File

@@ -0,0 +1,10 @@
const http = require('http')
module.exports = function (myEmitter) {
myEmitter.on('text', text => {
if (text.text.search('ight') > -1) {
if (text.text.search('on') > -1) http.get('http://localhost:3434/on')
if (text.text.search('of') > -1) http.get('http://localhost:3434/off')
}
})
}