A simple Discord chat bot uses OpenAI's GPT-3.5-turbo API instead of web crawling
Python 3.8 or higher is required for this bot
Install Discord python package
pip install discord
Install OpenAI python package
pip install openai
Paste your Discordtoken in main.py file
#CONFIG'
TOKEN = 'YOUR-DISCORD-TOKEN-HERE' ####TYPE YOUR DISCORD TOKEN HERE####
intents = discord.Intents.all()```
Paste your OpenAI token in openai_response.py
openai.api_key = 'YOUR-OPENAI-TOKEN-HERE' ####TYPE YOUR OPENAI TOKEN HERE####
- This bot is using OpenAI's API instead of web crawling ChatGPT website. Which has higher availability and faster response time
- You can set a system message for AI. The picture below is using the system message to make bot acting like a neko
- Add support for serverless hosting solution
- Increase the continuity of conversations