Skip to content

PL7963/OpenAI-Discord-ChatBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenAI-Discord-ChatBot

A simple Discord chat bot uses OpenAI's GPT-3.5-turbo API instead of web crawling

Installation

Python 3.8 or higher is required for this bot

Install Discord python package

pip install discord

Install OpenAI python package

pip install openai

Setup

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####

Features

  • 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 image

Todo List ✅

  • Add support for serverless hosting solution
  • Increase the continuity of conversations

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages