https://github.com/leodubosclard/gpt_bot
Discord Bot using ChatGPT
https://github.com/leodubosclard/gpt_bot
artificial-intelligence bot chatgpt discord discord-bot golang gpt
Last synced: 10 months ago
JSON representation
Discord Bot using ChatGPT
- Host: GitHub
- URL: https://github.com/leodubosclard/gpt_bot
- Owner: leodubosclard
- Created: 2022-12-28T21:03:20.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-11T14:29:42.000Z (over 3 years ago)
- Last Synced: 2025-04-16T11:39:14.916Z (about 1 year ago)
- Topics: artificial-intelligence, bot, chatgpt, discord, discord-bot, golang, gpt
- Language: Go
- Homepage: https://tinyurl.com/2sp5vuns
- Size: 46.9 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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