02730ff488
add limits related to current messages to config
2023-03-24 16:47:26 +01:00
4f4b708ba5
move config to a typescript file, add option for chatCompletionConfig
...
Now we can write code inside config,
which allows us to send current time to the OpenAI api
inside system message!
Example config updated accordingly
2023-03-24 15:44:22 +01:00
960c340760
Log more more information on error (origin, type)
...
also fix the emoji in embed sent in reply
2023-03-22 06:40:16 +01:00
aafefc3ad0
Fix DiscordAPIError on receiving empty content.
...
Previously, when OpenAI returned a message with an empty string,
it would try to send that empty message, which throwed an error.
Now it will react with an emoji to the message that triggered the request.
2023-03-19 02:26:28 +01:00
7411648d02
Check messages aganist OpenAI moderation API
2023-03-14 23:52:37 +01:00
c18b8d83ef
Initial commit
2023-03-14 21:16:54 +01:00