ParadauxIO / chatgpt-discord-bot

A simple discord bot to add a ChatGPT experience to your discord!
GNU General Public License v3.0
1 stars 1 forks source link

Replace message history system to include messages that aren't direct interactions with the bot #1

Open ParadauxIO opened 1 year ago

ParadauxIO commented 1 year ago

To really give the bot context we should cache the last 10 messages in every channel and then submit that as a single GPTMessageQueue entry like so:

Rian#6500: lorem ipsum...
User2#001:lorem ipsum...
Rian#6500: lorem ipsum...
User2#001:lorem ipsum...

Right now only direct interactions with the bot (when it responds) are stored.