Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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!
- Host: GitHub
- URL: https://github.com/iTzArshia/GPT-Discord-Bot
- Owner: iTzArshia
- License: mit
- Created: 2023-02-11T17:25:08.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-18T13:17:58.000Z (7 months ago)
- Last Synced: 2024-10-12T02:41:23.010Z (2 months ago)
- Topics: ai, bot, chatbot, chatgpt, dall-e, discord, discord-js, gpt, gpt-3-5-turbo, gpt-4, image-generator, moderation, openai, openai-chatgpt, translator
- Language: JavaScript
- Homepage:
- Size: 3.59 MB
- Stars: 235
- Watchers: 8
- Forks: 58
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - 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! (JavaScript)
README
Chat GPT 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 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 β