Slack Bot which gives you the current status of users in a workspace
SlackHotDeskBot gets the status of all users in a workspace and outputs the number of people who currently have status set to 'office' or 'wfh' (Working from home) . It uses the slackbots.js node package and axios to make requests to slack API https://www.npmjs.com/package/slackbots
- Clone/Download project
- Create a .env file in the same directory as index.js that looks like this:
bot_token = MY SLACK BOT TOKEN url = MY SLACK WORKSPACE URL
- add a bot user to your workspace using the guide here:
* https://slack.com/intl/en-ie/help/articles/115005265703-create-a-bot-for-your-workspace
* https://api.slack.com/bot-users
- run
npm start
Originally created as a way to make it easier for Agile workforces to get information about the number of desks available in their hotdesking workspace