Categorygithub.com/alkshmir/go-openai-discord
modulepackage
0.0.0-20241212031114-3528b9d5a258
Repository: https://github.com/alkshmir/go-openai-discord.git
Documentation: pkg.go.dev

# README

go-openai-discord

Golang implementation of OpenAI chatbot as discord bot

deploy

create .env file and replace the placeholders with your credentials

OPENAI_API_KEY=<OPENAI API KEY>
DISCORD_BOT_TOKEN=<DISCORD BOT TOKEN>

Try your bot:

go run main.go

Docker

Build a container:

docker build -t openai-discord .

Run the container:

docker run --env-file .env openai-discord

# Functions

No description provided by the author
No description provided by the author
functional option to set the logger for OpenAIChatBot.

# Structs

Base implementation of HandleReply.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
contract for logging.
Sender interface to sniff messages at testing.

# Type aliases

the functional options for OpenAIChatBot.