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

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!

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)