DiscordGPTChatBot
1.0.0
A Python based Discord chat bot that uses the OpenAI GPT API with a custom role
OpenAI GPT3.5 model allow to change it behavior using custom training and using system role messages, this repository allows to create a Discord Bot using the GPT 3.5 model with a custom role allowing to change the behavior of the answers of the bot.
Full setup guide available at Setup guide
Install Python 3.9 in your device.
Clone the repository:
git clone https://github.com/02loveslollipop/DiscordGPTChatBot.gitInstall FFmpeg on your device, FFmpeg can be install here
Create a copy of example_config.yml and rename it as config.yml, then open it and paste your Discord and OpenAI keys and change the role of the chat bot (Full description of config.yml):
bot:
token: "YOUR_DISCORD_KEY" # Paste here the token you got from Discord Developer Portal
open_ai:
token: "YOUR_OPEN_AI_KEY" # Paste here the OpenAI secret key you got from OpenAI platform
role: "You are a helpful assistant." # Change here chatbot's role, this will change it's behavior answering questionspip -r /path/to/your/repo/requirements.txtpython main.pyFull list of commands here
Config.yml configuration guide