An open API service indexing awesome lists of open source software.

https://github.com/zerlock/gpt_bot

Discord Bot using ChatGPT
https://github.com/zerlock/gpt_bot

artificial-intelligence bot chatgpt discord discord-bot golang gpt

Last synced: about 1 year ago
JSON representation

Discord Bot using ChatGPT

Awesome Lists containing this project

README

          

# 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](https://beta.openai.com/account/api-keys)


## Usage

### Using local project
**Please, fill environment variables in envrc using your tokens**

```bash
# 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**

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

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


## Bot Commands

### **`!gpt `**
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](https://linkedin.com/in/leo-dubosclard) - Project Owner - Developer