Description | Features | Prerequisites | API | License
JuanPrime is a machine learning project built with PyTorch, focusing on creating a Discord bot. It utilizes natural language processing techniques to provide interactive bot functionalities within the Discord platform.
- Timeout Discord
- On Discord answer only when called
- Created API
- API hosted on render
Before getting started, ensure that you have the following dependencies installed:
- discord.py==2.3.1
- nltk==3.8.1
- numpy==1.24.3
- torch~=2.0.1
Follow the steps below to install and run JuanPrime:
-
Clone the repository:
git clone https://www.github.com/silveirinhajuan/juanprime.git
-
Navigate to the project directory:
cd juanprime
-
Install the dependencies:
pip install -r requirements.txt
-
Run the project:
python main.py
Follow the steps below to consume API.
-
Ensure that you have an internet connection and a client application capable of making HTTP requests.
-
Make a POST request to the API endpoint
https://api-ai.onrender.com/response_msg
using your preferred method or tool (e.g., cURL, Postman, or a programming language). -
Set the following headers in your request:
Content-Type: application/json
-
In the request body, provide the message data in JSON format. The JSON should contain a single key-value pair, where the key is
"text"
and the value is the message you want to send to your AI. For example:{ "text": "Hello, AI!" }
-
Send the POST request to the API endpoint.
-
The API will process your request and return a response. The response will be in JSON format and will contain a key
"response"
with the corresponding value as the response generated by your AI. For example:{ "response": "your response" }
Contributions are always welcome! To contribute to JuanPrime, follow these steps:
-
Fork the project
-
Create a new branch for your feature:
git checkout -b my-feature
-
Commit your changes:
git commit -m 'Adding a new feature'
-
Push to the branch:
git push origin my-feature
-
Open a pull request
This project is licensed under the MIT License.
-
Email: [email protected]
-
GitHub: silveirinhajuan
-
LinkedIn: silveirinhajuan
Made with ♥ by Juan Guerra 👋 Access my LinkedIn!