ChatGPT-Discord-Bot
ChatGPT-Discord-Bot copied to clipboard
An advanced Discord ChatGPT bot built with NodeJs, Typescript and OpenAI API.

ChatGPT Discord Bot
An advanced discord chatbot built with NodeJs, Typescript and OpenAI API.
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
-
About The Project
- Built With
-
Getting Started
- Installation
- Features
- Bot Commands
- Some Screenshots
- Contributing
- License
- Contact
- Acknowledgments
About The Project
ChatGPT re-created with GPT-3.5 as Discord Bot. Using Typescript, NodeJs, DiscordJs and OpenAI API.
(back to top)
Built With
(back to top)
Getting Started
I can't afford to deploy its, so you can deploy your own.
Installation
Locally
- 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
Features
- 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).
🔥 NEW FEATURES
- 🔥 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)
-
(back to top)
Bot commands
Slash commands
-
/start
- Start a new conversation -
/mode
- Select chat mode -
/end
- End the conversation -
/clear
- Clear user messages.
Prefix Commands
-
!ask
- Use this to chat with ChatGPT. -
!prefix
- Change prefix.
Some Screenshots









Contributing
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
(back to top)
License
Distributed under the MIT License. See LICENSE.txt
for more information.
(back to top)
Contact
Shin - [email protected]
Project Link: ChatGPT-Discord-Bot
(back to top)
Acknowledgments
(back to top)