Documentation: https://Glyphack.github.io/slack-gpt
Source Code: https://github.com/Glyphack/slack-gpt
PyPI: https://pypi.org/project/slack-gpt/
Reply to slack message without thinking with GPT3
- Goto https://api.slack.com/apps and create new app
- Enable Events for the bot and subscribe to event
app_mention
and set the callback to "yourdomain.com/slack/events" - Add permission in Oauth & Permissions tab add the following permissions
app_mentions:read
channels:history
chat:write
chat:write.public
commands
groups:history
im:history
incoming-webhook
mpim:history
- Copy the Bot User OAuth Token
- Copy the Signing Secret
Open src/slack_gpt/main.py
and fill the env values from secrets above.
...
Profit
- Clone this repository
- Requirements:
- Poetry
- Python 3.7+
- Create a virtual environment and install the dependencies
poetry install
- Activate the virtual environment
poetry shell
pytest