Commit graph

278 commits

Author SHA1 Message Date
1fc6262826 Make bot respond in a reply 2023-04-05 15:31:07 +02:00
fbef4ad796 Cleanup DB schema
Remove unused columns
2023-04-05 15:21:11 +02:00
44be80cacb Remove test ping slash command
It existed only for testing purposes.
2023-04-05 13:12:20 +02:00
33fb65767e Extend ChatGPT system message
Give some more context and information, to be helpfuller like to know
wher it is and in what form to answer.
2023-04-05 12:57:31 +02:00
a4b7df1dc3 Add timeout to the tokens slash command
Don't need to wait for ever...
2023-04-05 12:41:30 +02:00
b1490ee7e7 Improve OCI image build cache
The package command will download all dependencies needed for
building the project even though no code is provided.
2023-04-05 12:32:36 +02:00
880eb63b25 Add support for responding and using the context of the previous message 2023-04-05 12:25:51 +02:00
e636fc2c0b Stop running ChatGPT on non chat events
Running a command would trigger it.
2023-04-05 11:29:48 +02:00
4c2d321811 Fix token slash command
The command needs to run later because it takes it's time and would else
time out...
2023-04-05 11:27:11 +02:00
dbf8421fef Enabling rate limit
It will now properly check for rate limits.
2023-04-05 10:40:58 +02:00
9164d60206 Implement ServerConfig transformer 2023-04-05 10:39:54 +02:00
0ce576a7bb Update jetbrains annotations lib to newes version 2023-04-05 00:03:40 +02:00
c097b18b66 Rework ResultSetIterator
The previous version was broken and was throughing null pointers all
around.
2023-04-05 00:02:17 +02:00
cf6df4d0c7 Fix failing to remove own name when bot is renamed on server 2023-04-04 23:32:49 +02:00
9227935de5 Use Virtual Threads for handling listening message create events
The API calls require some time and this might overload the handler and
produce warnings.
2023-04-04 23:15:28 +02:00
79f5fd6a0e WIP: Implement command to obtain the amount of consumed tokens 2023-04-04 23:05:39 +02:00
dc4b9be195 Implement rate limiting 2023-04-04 22:29:05 +02:00
44f039c691 Add convenience script to build and publish an OCI image 2023-04-04 21:41:05 +02:00
34ada84476 WIP Implement rate limiting
It's kind of a prototype and not connected. It's not tested and I will
probably rewrite it in plain sql.
2023-04-04 20:12:44 +02:00
a13df046c6 Refactor handling MessageCreateEvents
The refactoring removes the support for DMs. The current DB
implementation does not support DM configuration/logging.
2023-04-04 19:13:50 +02:00
4418b08fbb Add persistence over Postgresql 2023-04-04 17:52:50 +02:00
9ff2754e00 Add slf4j logging with logback-classic backend 2023-04-04 00:46:35 +02:00
18885df70d Try to improve response format 2023-04-04 00:10:59 +02:00
0d65ea6875 Fix long value postfix 2023-04-03 20:26:15 +02:00
adbc2a0843 Add dockerignore
Improve caching :D
2023-04-03 19:45:46 +02:00
4d75f71ac8 Add .idea to the ignored files
You should generate/configure your editor/IDE as you like.
2023-04-03 19:43:31 +02:00
687a6dbec4 Make the api keys configurable through env vars 2023-04-03 19:41:19 +02:00
d7bc035b3e Init 2023-04-03 19:15:48 +02:00