Skip to content

An advanced Discord ChatGPT bot built with NodeJs, Typescript and OpenAI API.

License

Notifications You must be signed in to change notification settings

shin202/ChatGPT-Discord-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Logo

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
  1. About The Project
  2. Getting Started
  3. Features
  4. Bot Commands
  5. Some Screenshots
  6. Contributing
  7. License
  8. Contact
  9. 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

  • NodeJs
  • Typescript

(back to top)

Getting Started

I can't afford to deploy its, so you can deploy your own.

Installation

Locally

  1. Clone the repo
    git clone https://github.com/shin202/ChatGPT-Discord-Bot
    cd ChatGPT-Discord-Bot
    npm install
  1. Get your OpenAI API key at OpenAI.
  2. Get your Replicate API key at Replicate.
  3. Create your discord bot at Discord Developer and get your bot token.
  4. Get your bot client id and your discord guild id.
  5. Edit .env.example to set your tokens then rename it to .env.
  6. 🔥 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! ✨

  1. Fork the Project
  2. Create your branch (git checkout -b <your_branch_name> <tag_name>)
  3. Commit your Changes (git commit -m <your_commit_message>)
  4. Push to the Branch (git push origin <your_branch_name>)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

Shin - shin.dev@proton.me

Project Link: ChatGPT-Discord-Bot

(back to top)

Acknowledgments

(back to top)