sleep-slack-status
Post sleep amount as slack status
Getting a Slack API token to post status
- Go to the Slack API website and sign in with your Slack account.
- Click on "Your Apps" in the top right corner, then click "Create New App" to create a new app.
- Choose a name and workspace for your app, then click "Create App."
- Scroll down to the "Add features and functionality" section and click on "Bots" to add a bot user to your app.
- Click "Add a Bot User," then give your bot user a display name and default username.
- Scroll down to the "Install App" section and click on "Install App" to generate an API token for your bot user.
- Follow the prompts to authorize the app for your Slack workspace, then copy the API token that is generated.
- Store your API token in config.ini, and use it to authenticate requests to the Slack API.