Skip to content

Latest commit

 

History

History
executable file
·
94 lines (62 loc) · 2.81 KB

README.md

File metadata and controls

executable file
·
94 lines (62 loc) · 2.81 KB

Python ChatBot Project

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.

TODO

  • Add help function
  • Add stuff from AIsuite

Features

  • ChatBot Prompts: Handles dynamic conversation flows.
  • Ping: Checks and reports server status.
  • Status: Provides the current status of the chatbot.

Dependencies

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.

Installation

  1. Clone the repository:

    git clone git@github.com:Elias2660/Proompter.git
  2. Create a virtual environment:

    python -m venv venv
  3. Activate the virtual environment:

    • On Windows:

      .\venv\Scripts\activate
    • On Unix or MacOS:

      source venv/bin/activate
  4. Install the dependencies:

    pip install -r requirements.txt
  5. 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>"

Usage

Run the main script to start the chatbot:

python main.py

Contributing

Contributions are welcome! Please feel free to submit pull requests or open issues to discuss potential improvements or features.

Code of Conduct

Please don't be a bad person! Check out the code of conduct for more details.

License

This project is licensed under the MIT License. See the LICENSE file for more details.