Skip to content

Latest commit

 

History

History

02-bob-hubot

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

/02-bob-hubot

/00-first

This part is a walking skeleton of Hubot

Listen and display Hubot answers

  • run (first) ./listen.js (this is an Express application)
  • set up variables and parameters in the config.js file

eg: You can use this part as a middleware to send informations (Johnny5, MQTT, ...)

Start Hubot

Talk to Hubot:

fetch(`http://<server-name>:<port>/<room_name>`, {
  method: 'POST',
  headers: {
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    from: "@k33g_org",
    message: "bob yo"
  })
})

see talk.to.bob.js