A robust, all-in-one GPT3 interface for Discord. ChatGPT-style conversations, image generation, AI-moderation, custom indexes/knowledgebase, youtube summarizer, and more!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Kaveen Kumarasinghe a2b3c266ca
Update README.md
2 years ago
cogs Full refactor to pycord, and cogs 2 years ago
models Full refactor to pycord, and cogs 2 years ago
README Full refactor to pycord, and cogs 2 years ago
README.md Update README.md 2 years ago
bot.py Update bot.py 2 years ago
main.py Full refactor to pycord, and cogs 2 years ago
requirements.txt Full refactor to pycord, and cogs 2 years ago

README.md

Requirements

python3.7 -m pip install openai

python3.7 -m pip install dotenv

python3.7 -m pip install discord (This should be the discord.py rewrite, not the pycord library)

OpenAI API Key (https://beta.openai.com/docs/api-reference/introduction)

Discord Bot Token (https://discord.com/developers/applications)

You can learn how to add the discord bot to your server via https://www.ionos.co.uk/digitalguide/server/know-how/creating-discord-bot/

Both the OpenAI API key and the Discord bot token needed to be loaded into a .env file in the same local directory as the bot file.

OPENAI_TOKEN="TOKEN"

DISCORD_TOKEN="TOKEN"

Usage

python3.7 bot.py

Commands

!g - Display help text for the bot

!g converse - Start a conversation with the bot, like ChatGPT

!g end - End a conversation with the bot.

!gp - Display settings for the model (temperature, top_p, etc)

!gs <setting> <value> - Change a model setting to a new value

!g <prompt> Ask the GPT3 Davinci 003 model a question.

!gu Estimate current usage details (based on davinci)

!gs low_usage_mode True/False Turn low usage mode on and off. If on, it will use the curie-001 model, and if off, it will use the davinci-003 model.