Skip to content

PsVenom/GPT-discord

Repository files navigation

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 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 tutorial
  • To use a custom GPT-3 engine, edit the variable in line 32 of main.py. Replace the existing value with a model name from here
  • To create a custom fine tuned GPT-3 model, refer to this 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