Skip to content

ZerLock/gpt_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gpt_bot

Discord Bot using ChatGPT


Request your OpenAI API key

To use this bot, you must have an OpenAI API key following this link https://beta.openai.com/account/api-keys


Usage

Using local project

Please, fill environment variables in envrc using your tokens

# Download dependencies
$ go mod download

# Run bot
$ go run github.com/zerlock/gpt_bot

Using Dockerfile

Please, fill environment variables in Dockerfile using your tokens

# Build docker image
$ docker build . -t gpt_bot:latest

# Run docker image
$ docker run -t gpt_bot:latest

Bot Commands

!gpt <text>

Talk with ChatGPT, it answer you with Discord reply message

Example


Contribute

Please open up an issue on GitHub before you put a lot efforts on pull request.


Mainteners

Léo Dubosclard - Project Owner - Developer