This project implements a GPT-powered bot for Fediverse platforms, currently specifically designed to work with GoToSocial instances. The bot can respond to mentions and interact with users using OpenAI-API compatible generative models.
- Supports image attachments in conversations
- Responds in same language & visibility & CW & interaction policies as the user's post
- Configurable thread context length & depth
- Different models for local and remote users
The bot is configured using environment variables. You can set these in a .env
file in the project root. An example configuration is provided in .env.example
- Clone the repository
- Copy
.env.example
to.env
and fill in your configuration - Run
go mod download
to install dependencies - Build the project with
go build -o gpt-bot
- Run the bot with
./gpt-bot
A Dockerfile is provided for containerized deployment:
To build and run the Docker container:
- Build the image:
docker build -t gpt-bot .
- Run the container:
docker compose up -d
Once the bot is running and connected to your Fediverse instance, it will automatically polling notifications and respond to mentions. The bot processes the conversation history and generates responses using the configured GPT model.
AGPL-3.0