chatgpt-discord  by m1guelpf

Go CLI tool for ChatGPT Discord bot

created 2 years ago
289 stars

Top 91.9% on sourcepulse

GitHubView on GitHub
Project Summary

This project provides a self-hosted Discord bot that allows users to interact with OpenAI's ChatGPT directly within Discord servers or private messages. It's designed for users who want a dedicated, integrated ChatGPT experience in their Discord communities without relying on third-party integrations.

How It Works

The bot is a single, statically compiled Go binary. Upon execution, it prompts the user to configure their Discord bot token and optionally their Discord username via an .env file. For authentication with OpenAI, it defaults to launching a browser session to capture a session token. Alternatively, users can manually extract and provide the __Secure-next-auth.session-token cookie via a JSON configuration file for headless or automated setups.

Quick Start & Requirements

  • Download the appropriate pre-compiled binary for your OS from the releases page.
  • Create and populate an .env file with your Discord bot token and optionally your Discord username.
  • Navigate to the extracted directory in your terminal and run ./chatgpt-discord.
  • OpenAI session authentication may require manual cookie extraction if browser automation fails.

Highlighted Details

  • Single, statically compiled Go binary for easy deployment.
  • Supports both server-wide and private DM interactions.
  • Offers manual session token extraction for headless environments.

Maintenance & Community

The project is maintained by m1guelpf. No specific community channels or roadmap details are provided in the README.

Licensing & Compatibility

  • Licensed under the MIT License.
  • Permissive license allows for commercial use and integration with closed-source applications.

Limitations & Caveats

The default browser-based authentication method may not work in all environments, necessitating manual session token extraction. The README does not specify version requirements for Go or Discord API compatibility.

Health Check
Last commit

2 years ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
0
Star History
1 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.