Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/creator79/discord-bot


https://github.com/creator79/discord-bot

Last synced: 10 days ago
JSON representation

Awesome Lists containing this project

README

        

ChatGPT and Midjourney Discord Bot

GPT Discord Bot is the original Discord AI bot written in **[JavaScript](https://www.javascript.com/)**, using the **[Discord.js V14](discord.js.org/)** library powered by [OpenAI](https://openai.com/)'s models. It has different features such as answering to all of your questions or draw your imaginations and even translate your prompts from any language to any other language you want and also an configurable Auto Moderation system powered by AI which watch all of your server messages (if you want, you can turn it off/on) and report flagged messages to Admins and they can moderate it and other features which you can see example in
## 🚧 Requirements
1. Discord Bot Token **[Guide](https://discordjs.guide/preparations/setting-up-a-bot-application.html#creating-your-bot)**
1.1. Enable "Message Content Intent" and "Server Members Intent" in Discord Developer Portal
2. OpenAI API Key
3. **[Node.js 16.9.0](https://nodejs.org/en/download/)** or higher
# 🚀 Getting Started
## ⚙️ Configuration
Go to `.env.example` in folder and fill out the values:
``` json
{

OPENAI_API_KEY=
ORGANIZATION=
TOKEN=
}
```
⚠️ **Note: Never commit or share your token publicly** ⚠️

and if you want to use chatbot or moderation model fill and config `chatbot.js` and `moderation.js` in `configs` folder and (Information on how to configure them is available in the files themselves)
## 🧠 installation
Open your terminal and install required packages with
```sh
npm install
```
After installation finishes run `node register.js` to deploy slash commands and then run `node index.js` in terminal to start the bot.
## 💫 Features
### Commands
`Ask` : Answers your questions with all GPT models (**GPT-3.5-Turbo**, **Text-Davinci-003**, **Text-Curie-001**, **Text-Babbage-001**, and **Text-Ada-001**)!

`Imagine` : Draw your imaginations with **Dall∙E**!
### Systems
`ChatBot` : A Channel where you can talk to the bot and have ChatGPT-Style conversation with **GPT-3.5-Turbo**. (It has a temporary memory so that it can remember the contents for a short time)

## 📸 Screenshots
<<<<<<< HEAD

![chat](https://user-images.githubusercontent.com/72148636/226947415-ad15c66a-c8e1-4e5f-a183-bdf0abc418c5.png)

![imagine](https://user-images.githubusercontent.com/72148636/226948171-2361f71c-cda7-4f2e-8121-e2078169fab6.png)

## Support❤️
Made with ❤️ and JavaScript, Don't Forget to ⭐