Skip to content

bms-devs/hackaton2016bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wcbot

Slack bot returning the occupation status.

Based on ChuckNorris tutorial https://scotch.io/tutorials/building-a-slack-bot-with-node-js-and-chuck-norris-super-powers

local setup

  1. Install node.js
  2. install npm
  3. clone repository
  4. run npm install
  5. get the slack API token, as described here
  6. export acquired token as environment variable BOT_API_KEY
  7. run the application node bin\wcbot.js
  8. the application expects rest endpoint, configured via config\default.json, which returns JSON array in following format:
[  
   {  
      "id":1,
      "name":"name 1",
      "occupied":false,
      "lastUpdateDate":"2016-12-18T11:43:57"
   },
   {  
      "id":2,
      "name":"name 2",
      "occupied":true,
      "lastUpdateDate":"2016-12-18T14:43:57"
   }
]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •