An advanced discord chatbot built with NodeJs, Typescript and OpenAI API.
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
ChatGPT re-created with GPT-3.5 as Discord Bot. Using Typescript, NodeJs, DiscordJs and OpenAI API.
I can't afford to deploy its, so you can deploy your own.
- Clone the repo
git clone https://github.com/shin202/ChatGPT-Discord-Bot
cd ChatGPT-Discord-Bot
npm install
- Get your OpenAI API key at OpenAI.
- Get your Replicate API key at Replicate.
- Create your discord bot at Discord Developer and get your bot token.
- Get your bot client id and your discord guild id.
- Edit
.env.example
to set your tokens then rename it to.env
. - 🔥 Run and enjoy its 🔥
npm start
- Low latency replies (about 3-5 seconds)
- No request limits
- Supported chat mode: 👩💼 LiLy: Assistant, 👨💻 Steve: Code Assistant, 👩⚕️ Sarah: Psychologist. (I will add more, if I have time.)
- Limited conversation time (To avoid spam).
- 🔥 Add new chat mode (👨🎨 Prompt Creator) (
Help users generate unique and creative prompts for image generation.
) - 🔥 Now you can generating image with AI by using
/draw
command. - 🔥 Variant models for generate image.
- 🔥 Supported Models:
OpenJourney (Midjourney V4 Style)
Stable Diffusion
Portrait Plus (for portrait image)
Anything V3 (anime style)
Pastel Mix (anime style)
/start
- Start a new conversation/mode
- Select chat mode/end
- End the conversation/clear
- Clear user messages.
!ask
- Use this to chat with ChatGPT.!prefix
- Change prefix.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again! ✨
- Fork the Project
- Create your branch (
git checkout -b <your_branch_name> <tag_name>
) - Commit your Changes (
git commit -m <your_commit_message>
) - Push to the Branch (
git push origin <your_branch_name>
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Shin - shin.dev@proton.me
Project Link: ChatGPT-Discord-Bot