Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 828 Bytes

README.md

File metadata and controls

35 lines (26 loc) · 828 Bytes

/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