This project is a Python-based chatbot that utilizes various libraries to provide functionalities like responding to user queries, checking server status, and more. It's structured to be modular, with separate components for different tasks.
- Add help function
- Add stuff from AIsuite
- ChatBot Prompts: Handles dynamic conversation flows.
- Ping: Checks and reports server status.
- Status: Provides the current status of the chatbot.
The project relies on several third-party libraries, including:
urllib3
for HTTP requests.websockets
for WebSocket communication.aiohttp
for asynchronous HTTP requests.distro
for Linux distribution information.sniffio
for detecting the async library in use.discord.py
for directly interfacing with Discord.openai
for accessing OpenAI's APIs.
For a full list of dependencies, refer to the requirements.txt file.
-
Clone the repository:
git clone git@github.com:Elias2660/Proompter.git
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
-
On Windows:
.\venv\Scripts\activate
-
On Unix or MacOS:
source venv/bin/activate
-
-
Install the dependencies:
pip install -r requirements.txt
-
Add an env file with the following information with the following structure. Read about creating your own Discord bot and application here and here, and learn about using gpt and creating your own API key here.
export BOT_TOKEN="<Insert the token for your bot here>" export BOT_TOKEN="<Insert token for bot here>" export GPT_API_KEY="<Insert your gpt api key here>" export NYTIMES_API_KEY="<Insert your NYtimes api key here>" export GOOGLE_API="<Insert your Google api key here>" export CLAUDE_API="<Insert your Claude api key here>" export PERPLEXITY_API="<Inser your Perplexity api key here>"
Run the main script to start the chatbot:
python main.py
Contributions are welcome! Please feel free to submit pull requests or open issues to discuss potential improvements or features.
Please don't be a bad person! Check out the code of conduct for more details.
This project is licensed under the MIT License. See the LICENSE file for more details.