Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/iTzArshia/GPT-Discord-Bot

🧠 Example Discord Bot written in JavaScript that uses OpenAIs models such as ,`GPT 4`, `GPT-3.5-Turbo`, `Dall-E`, and `Text-Moderation-Stable` with many features such as ChatGPT-Style Conversation, image-Generator, Auto-Moderator and more!
https://github.com/iTzArshia/GPT-Discord-Bot

ai bot chatbot chatgpt dall-e discord discord-js gpt gpt-3-5-turbo gpt-4 image-generator moderation openai openai-chatgpt translator

Last synced: 11 days ago
JSON representation

🧠 Example Discord Bot written in JavaScript that uses OpenAIs models such as ,`GPT 4`, `GPT-3.5-Turbo`, `Dall-E`, and `Text-Moderation-Stable` with many features such as ChatGPT-Style Conversation, image-Generator, Auto-Moderator and more!

Awesome Lists containing this project

README

        

Chat GPT Discord Bot


GitHub stars
GitHub forks
iTz Development Discord
iTz Club Discord

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 all of your questions or drawing your imagination and even translating your prompts from any language to any other language you want and also has a configurable Auto Moderation system powered by AI which watches 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 **[Screenshots](https://github.com/iTzArshia/GPT-Discord-Bot#-screenshots)**!
## 🚧 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 `config.json` in the `configs` folder and fill out the values:
```json
{
"Prefix": "Put anything you want as a prefix",
"MainColor": "Put any #HexCode you want for embeds color",
"ErrorColor": "Put any #HexCode you want for embeds color when there is an error",
"ClientID": "Put your Bot ID/Client ID here",
"Token": "Put your Bot Token here",
"OpenAIapiKey": "Put your Open AI API Key here"
}
```
⚠️ **Note: Never commit or share your token publicly** ⚠️

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

`Imagine` : Draw your imaginations with **Dallβˆ™E**!

`Optimize` : Optimizes your imaginations to get a better response with the imagine command with **GPT-3.5-Turbo**!

`Translate` : Translate your texts in any language to any language you want with **GPT-3.5-Turbo**.
### 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)

`Auto-Moderation` : An Auto Mod system that checks all of your server messages and sends a log for your Admins if a message content complies with OpenAI's usage policies with **Text-Moderation-Stable** (moderation model is free to use and you can config it as much as you want)
## πŸ“Έ Screenshots
![Ask](https://user-images.githubusercontent.com/89854127/218874201-c64068e8-708e-49ca-a322-bcb1e4a76646.png)
![imagine](https://user-images.githubusercontent.com/89854127/218997350-d9a98021-33ad-4fed-b0bc-47306eebdd10.png)
![Translate](https://user-images.githubusercontent.com/89854127/218874217-f472fa38-9918-46a3-a0e2-6a4cbfb4c370.png)
![Conversation](https://user-images.githubusercontent.com/89854127/219849430-09bdbac5-2ffa-4759-9748-e33ec30c75f1.png)
![Auto Mod](https://user-images.githubusercontent.com/89854127/218874203-c54283b2-410a-4ab6-a233-1dbbb5f42594.png)
## ❀️ Donations
You can **[support](https://reymit.ir/itz_arshia)** me by donating if you like the project!
> Only available for Iranians :(
#
Made with ❀️ and JavaScript, Don't Forget to ⭐