Zero6992 / chatGPT-discord-bot

Integrate ChatGPT into your own discord bot
GNU General Public License v2.0
2.63k stars 701 forks source link

[Idea] Enhancing Context for Discord AI Bot #388

Open dinushay opened 1 year ago

dinushay commented 1 year ago

Hello! Is it possible for the AI to get more context from what's happening right now or from the server? You could write the discord name of the person who sent the prompts. For example, "Dinu Nuggets: [prompt]" will be sent to the Ai, so the AI knows who is speaking.

You could let the bot owner decide for himself by adding or removing options in a text file.

The text file could look like this:

# Add here the variables to the final prompt that the AI will be sent to.
# options: [server-name] [channel-name] [username] [user-prompt]
# Example: [username]: [user-prompt]

FINAL-PROMPT=[user-prompt]

I hope you understand my request