https://github.com/ota0912/gpt-discord-bot
A discord chatbot powered by Openai's GPT-3, with several other features ready to be deployed through heroku!
https://github.com/ota0912/gpt-discord-bot
chatbot discord-bot discord-py gpt-3 python
Last synced: 8 months ago
JSON representation
A discord chatbot powered by Openai's GPT-3, with several other features ready to be deployed through heroku!
- Host: GitHub
- URL: https://github.com/ota0912/gpt-discord-bot
- Owner: ota0912
- License: mit
- Created: 2022-07-21T08:03:21.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-21T12:10:47.000Z (almost 4 years ago)
- Last Synced: 2023-04-25T20:56:08.436Z (about 3 years ago)
- Topics: chatbot, discord-bot, discord-py, gpt-3, python
- Language: Python
- Homepage:
- Size: 109 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# GPT Discord Bot
A discord chatbot powered by Openai's GPT-3, with several other features ready to be deployed through heroku!

# So what can the bot do?
- For starters, it can start converstations that feel almost surreal. All of that is thanks to OpenAI's GPT3, a popular large language model
- The bot can also respond to you messages in a Voice Chat by using ffmpeg and Google TTS
- Can perform tts for those awkard moments when you just can't get your microphone to work
# Installation
- Run the command to install all the dependencies
```
pip install -r requirements.txt
```
- Create an account on [OpenAI](https://openai.com/api/) and generate an API key
- Duplicate & Rename the `.env.example` file to `.env`
- Paste your `bot token` and `openai api key` in the .env file
- Run `bot.py` or `bot_slash.py` and the bot should be online
# Features
- Chatbot command to interact with GPT-3 engines directly
- Post a random hand curated doujin
- Webscrape websites for NSFW gifs
- Post a random image from the img dataset provided
- Use tts commands and actively interact with the bot in a vc
# Additional Tweaks
- To enable tts and vc commands, you'll have to manually install ffmpeg by following [this](https://www.geeksforgeeks.org/how-to-install-ffmpeg-on-windows/) tutorial
- To use a custom GPT-3 engine, edit the variable in line 32 of [main.py](main.py). Replace the existing value with a model name from [here](https://beta.openai.com/docs/models/gpt-3)
- To create a custom fine tuned GPT-3 model, refer to [this](https://beta.openai.com/docs/guides/fine-tuning) guide. Then comment line 32 and uncomment line 33 after replacing the value of variable `model` with the name of your custom model in [main.py](main.py)