Commit graph

263 commits

Author SHA1 Message Date
a0204e4da4 Change nav header to be app specific
Update content to match app requirements.
2023-04-27 17:29:26 +02:00
9a2861fc3f Move HomeView layout into DefaultLayout.vue
This is to make it easier to have the same layout on all views.
2023-04-27 17:25:34 +02:00
6c267b232c Add missing header and action buttons
The buttons currently don't provide any functionality.
2023-04-27 17:20:38 +02:00
d5a6da0647 Fix router
The router wouldn't work, there was a miss configuration regarding
imports and lazy loading components.
2023-04-27 17:19:59 +02:00
9914171dcb Add table component to show allowed servers entities 2023-04-27 15:29:11 +02:00
b96a544452 Add vue init 2023-04-16 20:40:48 +02:00
8b2422dd1b Fix formatting 2023-04-15 23:25:08 +02:00
6a80ddf7e5 Fix not throwing the right exception while transforming a result set 2023-04-15 22:39:36 +02:00
0b87a4d7d0 Add example docker-compose.yml 2023-04-15 22:35:09 +02:00
14c85032a0 Add a README to the project
The readme currently only holds the installation information.
2023-04-15 22:30:03 +02:00
11efd14c52 Add basic auth 2023-04-15 21:29:49 +02:00
65b30ea239 Fix rate limit message 2023-04-15 20:44:42 +02:00
d6e7f5dbaa Add api endpoints for user config 2023-04-15 20:44:04 +02:00
29a0f10ca7 Add api endpoints for allowed users 2023-04-15 20:20:31 +02:00
fc56091845 Add crud api endpoints for server configs 2023-04-15 19:50:08 +02:00
c9c80c7d09 Fix deleting allowed server 2023-04-15 19:36:07 +02:00
3af3096bea Reduce logging output
A lot gets logged in the debug mode...
2023-04-14 17:23:55 +02:00
703b49e8a0 Implement web api for allowed servers 2023-04-14 17:23:01 +02:00
05e27e8acf Add shutdown hook for the discord 2023-04-13 16:41:58 +02:00
17ca8f3929 Change ResultSetTransformer function name
To describe the functions purpose.
2023-04-13 15:40:06 +02:00
03afadfb87 Fix wrong column name while transforming UserConfig 2023-04-13 15:36:38 +02:00
1f75360a3f Fix loading allowed user 2023-04-13 15:33:28 +02:00
beca30efb0 Add debug logging for not allowed interactions 2023-04-13 15:29:27 +02:00
2a77a10abc Refactor server and user message handling 2023-04-13 15:19:51 +02:00
be3b38a8d2 Create new package for discord handlers 2023-04-13 14:35:08 +02:00
d8ae3c50e1 Refactor arch to support multiple services
Example a futuristic web API to configure and monitor the bot.
2023-04-13 14:25:42 +02:00
c230aa835c Add user message handler
This will currently not be triggered, since user message are not
allowed, but it should be used when ever this restriction is removed.
2023-04-13 13:17:49 +02:00
40f5bc6787 Add context length to the user config
To limit the context length used for the conversation.
2023-04-13 13:17:49 +02:00
36afa672ec Fix UserDBService error messages 2023-04-13 13:17:48 +02:00
a5b0ccc72c Add question and answer of a user message
This is esential creating creating a conversation.
2023-04-13 13:17:48 +02:00
95852549ed Add logback logging config
Reduce the logging from javacord.
2023-04-13 13:17:06 +02:00
a0e22b0e78 Fix error updating a server config 2023-04-06 17:32:54 +02:00
6c967700cb Add UserDBService 2023-04-06 17:32:16 +02:00
e390db84bf Add user entities to the db schema 2023-04-06 17:27:24 +02:00
7511edb4fb Move server related models into own package
Preparation for supporting users
2023-04-06 17:17:36 +02:00
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