brew install python3
pip3 install -r requirements.txt
Create a .env
file inside the server
folder using the template file .env.template
. Add all the required environment variables to the file (e.g. Slack bot token).
cd server
uvicorn main:app --reload
We created a Slack App called Sentiment Analyzer which has the corresponding read messages of public channels permissions - see scopes file in assets folder.
We added this Slack App (via a slash command ("/invite")) in all channels for which we would like to conduct the sentiment analysis - see also screenshot in assets folder.
We took the token from "OAUTH Tokens for your Workspace".
... Raise an issue in case of questions. ... Raise a PR in case of improvement proposals.
https://api.slack.com/messaging/retrieving