GitXplorerGitXplorer
k

pokemonshowdown_bot_chatgpt

public
0 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
f30644197f50c8b5d69939269ceef1fd9f68a9c0

URLcheck updata

kkasugamirai committed a year ago
Unverified
bf802aa0db552def1e0a696abd350005e832c1d7

add URL check

kkasugamirai committed a year ago
Unverified
5207e3a9ccdc67a9b689d25717199ac9d4169990

add delete handler

kkasugamirai committed a year ago
Unverified
5a5ccb1b08a4432992aea118eb0ebab114eadcd0

add deleteStriker func

kkasugamirai committed a year ago
Unverified
227f5069375a1fd2c8b3c2c76003189ca453eca3

add message check

kkasugamirai committed 2 years ago
Unverified
8adc9112ea3aa04462730073f48d9c2fd126b625

Auto reconnect

kkasugamirai committed 2 years ago

README

The README file for this repository.

pokemonshowdown_bot_chatgpt

Pokémon Showdown Bot with ChatGPT Integration
This project is a Pokémon Showdown chatbot capable of connecting to a game server, logging in, joining specified chat rooms, and responding to commands. The chatbot is written in Go and uses the Gorilla WebSocket library for real-time communication with the server. Additionally, the bot is integrated with OpenAI's ChatGPT, providing enhanced natural language understanding and response generation capabilities.
Getting Started
Prerequisites
Go programming language installed
Gorilla WebSocket library
OpenAI API Key
BARD API Key
Installation
Clone the repository:

git clone https://github.com/kasugamirai/pokemonshowdown_bot_chatgpt.git

Change to the project directory:

cd pokemonshowdownbot

Install the Gorilla WebSocket library:

go get -u github.com/gorilla/websocket

Usage
Edit the config.json file to configure the server, username, password, avatar, room, and OpenAI API key.

Build the project:

go build -o pokemonshowdownBot

Run the compiled binary:

./pokemonshowdownBot

Features
Connects to the Pokémon Showdown server Logs in with a given username, password, and avatar Joins specified chat rooms Reads and responds to messages in real-time Integrates with OpenAI's ChatGPT for advanced natural language understanding and response generation Code Structure
main.go: Main entry point for the application showdown/: Contains the core functionality for connecting to the Pokémon Showdown server and interacting with chat rooms chatgpt/: Contains the code for interacting with the OpenAI API and handling ChatGPT integration