A server for handling Slack Event Subscriptions. It communicates with the ChatGPT API server.
- Docker
Before running the application, make sure that Docker is installed and running on your system.
Very important: Set and use all the environment variables in app/config/constants.py.
- First, to run this application in your local environment, please execute the following command to install the required libraries.
pip install -r requirements.txt
- Once the necessary libraries have been installed, execute the following command to run the application.
uvicorn app.main:app --reload
This command will run the application based on the app object in the main module of the app package. You can use the --reload option to automatically reload the application when file changes are detected.
- Clone the repository:
https://github.com/jybaek/Hello-Slack-Bot.git
cd Hello-Slack-Bot
- Build the Docker image:
docker build -t slack-bot .
- Run the Docker container:
docker run --rm -it -p8000:8000 slack-bot
- Open your web browser and go to
http://localhost:8000/docs
to access the Swagger UI and test the API.
The API documentation can be found at http://localhost:8000/docs
once the Docker container is running.
If you want to send a message from Swagger, here's a link.
This project is licensed under the terms of the MIT license. See LICENSE for more information.