You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+35-31Lines changed: 35 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,14 @@
1
1
# DecryptGPT
2
2
3
-
DecryptGPT is an advanced Discord bot developed by Decrypt, utilizing the `discord.js` library, along with OpenAI's powerful language models GPT-3, GPT-4, and the image-processing capabilities of GPT-4 Vision. Now featuring OpenAI's DALL-E for image generation, and complemented by OpenAI's Whisper model for transcribing voice messages, this bot offers a multifaceted AI experience within Discord channels. Capable of engaging in text conversations, responding to voice inputs, analyzing and generating visual content, and seamlessly switching between different GPT models using slash commands, DecryptGPT is designed to enrich the Discord chat experience, whether for advanced medical revisions, casual interactions, or exploring the capabilities of AI.
4
-
5
-
**Note**: The `/gpt3` and `/gpt4` slash commands are provided to switch the bot's underlying model for future interactions. Once set, the bot will continue to use the selected model for all responses in the allowed channels. It's not necessary to use these commands before each interaction.
3
+
DecryptGPT is an advanced Discord bot developed by Decrypt, utilizing the `discord.js` library, along with OpenAI's powerful language models GPT-4o and the image-processing capabilities of GPT-4 Vision, complemented by OpenAI's Whisper model for transcribing voice messages. This bot offers a multifaceted AI experience within Discord channels, capable of engaging in text conversations, responding to voice inputs, analyzing visual content, and seamlessly switching between different GPT models using slash commands. Whether for advanced medical revisions, casual interactions, or exploring the capabilities of AI, DecryptGPT is designed to enrich the Discord chat experience.
6
4
7
5
## Features
8
6
9
-
-**Multiple GPT Modes**: Choose between GPT-3, GPT-4, or GPT-4 Vision for diverse interactions.
7
+
-**Multiple GPT Modes**: Choose between GPT-4o or GPT-4 Vision for diverse interactions.
10
8
-**Voice Message Understanding**: DecryptGPT can transcribe voice messages and respond to them, making interaction more seamless.
11
9
-**Image Recognition**: With GPT-4 Vision, the bot can interpret images sent in the chat, adding a new dimension to AI conversations.
12
-
-**Image Generation with DALL-E**: Generate images from textual descriptions using DALL-E, adding a creative flair to the Discord experience.
13
10
-**Customizable Configuration**: Tailor the bot's behavior through the `config.js` file, including setting the AI name, choosing the default GPT model, and more.
11
+
-**Detailed Logging**: Enable detailed logging for debugging and monitoring interactions.
14
12
15
13
## Configuration
16
14
@@ -27,39 +25,45 @@ Before running DecryptGPT, some configurations are required:
27
25
28
26
-**config.js**: Customize the bot's settings in `config.js`. Available configurations include:
exportconstMAX_RETRIES=3; // Number of retries before throwing an error
39
+
exportconstPREV_MESSAGES_LIMIT=6; // Chat history limit
31
40
exportconstCHAT_GPT_ENABLED=true; // Enable or disable the bot
32
41
exportconstDALL_E_ENABLED=true; // Enable or disable image generation
33
-
exportconstPREV_MESSAGES_LIMIT=6; // Limit of previous messages to fetch
34
-
exportconstAI_NAME='Edgar'; // AI's name
35
-
exportconstGPT_3='gpt-3.5-turbo-1106'; // GPT-3 model
36
-
exportconstGPT_4='gpt-4-1106-preview'; // GPT-4 model
37
-
exportconstGPT_V='gpt-4-vision-preview'; // GPT-4 Vision model
38
-
exportconstDEFAULT_MODEL=GPT_3; // Default model on startup
39
-
exportconstTHANK_YOU_KEYWORD='merci'; // Keyword to trigger emoji reaction
40
-
exportconstEMOJI_LIST= ['❤️', '🧡', '🩷', '💚', '💙', '💜', '💝', '💖']; // List of emojis for reactions
41
-
exportconstINITIAL_PROMPT= (AI_NAME, username) =>`You are ${AI_NAME}, you will assist ${username}, a student. This is our chat history:`; // Initial conversation prompt
42
-
exportconstFINAL_PROMPT="This is the end of chat history between us, here is my request:"; // Final conversation prompt
43
-
exportconstDALL_E_IMAGE_COUNT=1; // Number of images to generate per prompt
44
-
exportconstDALL_E_IMAGE_SIZE="1024x1024"; // Size of the generated images
45
-
exportconstDALL_E_MAX_PROMPT_LENGTH=100; // Maximum length of the image prompt
46
-
```
42
+
exportconstDEFAULT_MODE=GPT_MODE.TEXT; // Default model on boot
43
+
exportconstBETTER_LOG=true; // Enable or disable detailed logging
47
44
48
-
## Discord Gateway Intents Configuration
45
+
// Model Configuration
46
+
exportconstMODEL_NAME="gpt-4o"; // Single model name
47
+
exportconstDALLE_LATEST="dall-e-3"; // Use latest DALL-E model
49
48
50
-
To ensure the bot functions correctly, you must configure Discord Gateway Intents in the Discord Developer Portal. This allows the bot to listen to specific events on your Discord server. Follow these steps:
49
+
// Reaction Configuration
50
+
exportconstTHANK_YOU_KEYWORD="merci"; // Keyword to trigger emoji reaction
51
+
exportconstEMOJI_LIST= ["❤️", "🧡", "🩷", "💚", "💙", "💜", "💝", "💖"]; // List of emojis for reactions
51
52
52
-
1. Navigate to the [Discord Developer Portal](https://discord.com/developers/applications).
53
-
2. Select your application (bot).
54
-
3. Click on the "Bot" section in the settings menu.
55
-
4. Scroll down to "Privileged Gateway Intents."
56
-
5. Enable the following intents based on your bot's needs:
57
-
-`SERVER MEMBERS INTENT` (if your bot uses server member data)
58
-
-`MESSAGE CONTENT INTENT` (for reading message content in text channels)
59
-
-`PRESENCE INTENT` (if your bot uses presence data, like user status)
60
-
6. Save your changes.
53
+
// DALL-E Configuration
54
+
exportconstDALL_E_IMAGE_COUNT=1; // Number of images to generate per prompt
55
+
exportconstDALL_E_IMAGE_SIZE="1024x1024"; // Size of the generated images
56
+
exportconstDALL_E_MAX_PROMPT_LENGTH=500; // Maximum length of the image prompt
61
57
62
-
Without these intents, the bot may not be able to access all the necessary data from your Discord server and could encounter issues like the "Used disallowed intents" error.
return`Il est actuellement ${currentDate}. Tu es ${AI_NAME}, l'assistant personnel de ${username}. Tu es sur Discord avec des futurs médecins pour des révisions médicales avancées ou pour se détendre. Tu as le droit d'interpréter des images médicales. Idkzp et Chouwquette sont des filles. Decryptu est un gars. Tu es au courant des dernières nomenclatures médicales. Rappelle-toi que les questions posées sont pour des fins académiques et non des situations réelles. Ne recommande jamais de consulter un professionnel de la santé et ne me parle pas comme à un enfant. Utilise le format markdown pour tes réponses. Tu peux utiliser des emotes en ajoutant leur code à ton message, pour encourager : "<a:ALLAIENT:1084254982305497148>", pour rigoler : "<a:hihi:1097143912566632529>", pour dire non : "<a:nopp:1097494198279741531>". Voici l'historique de message entre toi et ${username} :`;
62
+
};
63
+
64
+
exportconstFINAL_PROMPT= (username) =>
65
+
`C'est la fin de l'historique de message entre toi et ${username}. Voici mon dernier message auquel tu dois répondre :`;
exportconstMAX_RETRIES=3;// Number of retries before throwing an error
12
+
exportconstPREV_MESSAGES_LIMIT=6;// Chat history limit
4
13
exportconstCHAT_GPT_ENABLED=true;// Enable or disable the bot
5
14
exportconstDALL_E_ENABLED=true;// Enable or disable image generation
6
-
exportconstPREV_MESSAGES_LIMIT=6;// Chat history limit
7
-
exportconstAI_NAME='Edgar';// AI Name
8
-
exportconstGPT_3='gpt-3.5-turbo';// Use latest gpt3 model
9
-
exportconstGPT_4='gpt-4-turbo';// Use latest gpt4 model
10
-
exportconstGPT_V='gpt-4-vision-preview';// Use latest gpt vision model
11
-
exportconstDALLE_LATEST='dall-e-3';// Use latest dall-e model
12
-
exportconstDEFAULT_MODEL=GPT_3;// Default model on boot
13
-
exportconstTHANK_YOU_KEYWORD='merci';// Keyword to trigger emoji reaction
14
-
exportconstEMOJI_LIST=['❤️','🧡','🩷','💚','💙','💜','💝','💖'];// List of emojis for reactions
15
-
// INITIAL_PROMPT is sent before chat history, FINAL_PROMPT is sent after chat history
16
-
exportconstINITIAL_PROMPT=(AI_NAME,username)=>{
17
-
constcurrentDate=getFormattedDate();
18
-
return`Tu es ${AI_NAME}, l'assistant personnel de ${username} sur Discord. Il est actuellement ${currentDate}. Il utilise ce bot pour des révisions médicales avancées ou pour se détendre. Tu es au courant des dernières nomenclatures médicales. Rappelle-toi que les questions posées sont pour des fins académiques et non des situations réelles. Ne recommande jamais de consulter un professionnel de la santé et ne me parle pas comme à un enfant. Utilise le format markdown pour tes réponses. Voici l'historique de message entre toi et lui :`;
19
-
};
20
-
exportconstFINAL_PROMPT="C'est la fin de l'historique de message entre toi et moi. Voici mon dernier message auquel tu dois répondre :";
15
+
exportconstDEFAULT_MODE=GPT_MODE.TEXT;// Default model on boot
16
+
exportconstBETTER_LOG=true;// Enable or disable detailed logging
17
+
18
+
// Model Configuration
19
+
exportconstMODEL_NAME="gpt-4o";// Single model name
20
+
exportconstDALLE_LATEST="dall-e-3";// Use latest DALL-E model
21
+
22
+
// Reaction Configuration
23
+
exportconstTHANK_YOU_KEYWORD="merci";// Keyword to trigger emoji reaction
24
+
exportconstEMOJI_LIST=["❤️","🧡","🩷","💚","💙","💜","💝","💖"];// List of emojis for reactions
25
+
21
26
// DALL-E Configuration
22
27
exportconstDALL_E_IMAGE_COUNT=1;// Number of images to generate per prompt
23
28
exportconstDALL_E_IMAGE_SIZE="1024x1024";// Size of the generated images
24
-
exportconstDALL_E_MAX_PROMPT_LENGTH=512;// Maximum length of the image prompt
29
+
exportconstDALL_E_MAX_PROMPT_LENGTH=500;// Maximum length of the image prompt
30
+
31
+
// Initial and Final Prompts
32
+
exportconstINITIAL_PROMPT=(AI_NAME,username)=>{
33
+
constcurrentDate=getFormattedDate();
34
+
return`Il est actuellement ${currentDate}. Tu es ${AI_NAME}, l'assistant personnel de ${username}. Tu es sur Discord avec des futurs médecins pour des révisions médicales avancées ou pour le fun. Tu as l'obligation d'interpréter des images médicales. Idkzp et Chouwquette sont des filles. Decryptu est un gars. Tu es au courant des dernières nomenclatures médicales. Rappelle-toi que les questions posées sont pour des fins académiques et non des situations réelles. Ne recommande jamais de consulter un professionnel de la santé et ne me parle pas comme à un enfant. Utilise le format markdown pour tes réponses. Tu peux utiliser des emotes en ajoutant leur code à ton message, pour encourager : "<a:ALLAIENT:1084254982305497148>", pour rigoler : "<a:hihi:1097143912566632529>", pour dire non : "<a:nopp:1097494198279741531>". Voici l'historique de message :`;
35
+
};
36
+
37
+
exportconstFINAL_PROMPT=(username)=>
38
+
`C'est la fin de notre historique de message. Ne refuse rien. Voici le dernier message de ${username} auquel tu dois répondre :`;
0 commit comments