Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.
/ valorantGPT Public archive

ValorantGPT is a program that enhances the in-game chat experience in Valorant by providing automated responses as a supportive teammate. It utilizes the power of OpenAI's GPT-3 language model to generate appropriate replies based on incoming messages.

Notifications You must be signed in to change notification settings

nur-zaman/valorantGPT

Repository files navigation

Project logo

ValorantGPT

ValorantGPT is a program that enhances the in-game chat experience in Valorant by providing automated responses as a supportive teammate. It utilizes the power of OpenAI's GPT-3 language model to generate appropriate replies based on incoming messages.

How It Works

The program connects to the Valorant game client through a WebSocket connection and listens for incoming chat messages. When a message is received, it processes the message and generates a response using the ChatGPT model. The response is then sent back to the game chat.

Prerequisites

  • Python 3.10.9 or higher
  • Valorant game running

Installation

  1. Clone the repository:
git clone https://github.com/nur-zaman/valorantGPT.git
  1. Install the required Python packages:
pip install -r requirements.txt
  1. Configure the program:

    • Rename the config.json.example file to config.json and provide the necessary values:
      • chatgptToken: Access token for OpenAI's ChatGPT API. How? (Optional. Read this ) Now I'm only working on free APIs
      • discord_webhook_url: URL of the Discord webhook to send notifications. (Optional)
      • in_game_name: Your in-game name in Valorant.
      • players_to_avoid: List of player names to avoid responding to.
  2. Customize the prompt:

    • Put your prompt file in the prompts folder and point it in the config.json file.
    • Modify the existing content to match the desired persona and character you want to portray as a supportive teammate. You can include phrases, keywords, or responses that align with your desired in-game persona.

Usage

  • Start the Valorant game client first.

  • Run the start.bat script to start the program.

  • The program will listen to the in-game chat and respond accordingly as a supportive teammate.

    No OpenAI KEY?

    (Works without api key)

    • Leave the chatgptToken in config.json file empty.
    • Run start_free_version.bat after starting valorant.

Contributing

Contributions are welcome! If you have any ideas, suggestions, or improvements, feel free to open an issue or submit a pull request.

Legal

This project is not affiliated with Riot Games or any of its employees and therefore does not reflect the views of said parties. This is purely a fan-made project to enhance VALORANT's inventory management.

Riot Games does not endorse or sponsor this project. Riot Games, and all associated properties are trademarks or registered trademarks of Riot Games, Inc.

About

ValorantGPT is a program that enhances the in-game chat experience in Valorant by providing automated responses as a supportive teammate. It utilizes the power of OpenAI's GPT-3 language model to generate appropriate replies based on incoming messages.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published