e52a3282e0
discord-ws: Fix resume url
...
ci/woodpecker/push/java Pipeline is pending
ci/woodpecker/push/oci-image-build Pipeline is pending
The resume url needs to use the same version and encoding as the initial
connection used to.
2024-12-18 17:19:35 +01:00
159f0769e0
ci: Change buildx image to use anchors
ci/woodpecker/push/java Pipeline was successful
ci/woodpecker/push/oci-image-build Pipeline was successful
2024-12-15 20:09:11 +01:00
5672f174ec
misc: Make params final
ci/woodpecker/push/java Pipeline was successful
ci/woodpecker/push/oci-image-build Pipeline was successful
2024-12-15 19:40:36 +01:00
cffc7c1e3c
misc: Update dependencies
ci/woodpecker/push/java Pipeline was successful
ci/woodpecker/push/oci-image-build Pipeline was successful
2024-12-15 13:15:17 +01:00
137d3ede04
discord-ws: Fix heartbeat timing
...
ci/woodpecker/push/java Pipeline was successful
ci/woodpecker/push/oci-image-build Pipeline was successful
Wait til sending complets and then start the sleep.
2024-12-15 13:05:17 +01:00
ed79486d73
discord-ws: Close connection on reconect and invalid session
2024-12-15 13:05:17 +01:00
e552f8ee58
discord-ws: Fix time based retry reset
ci/woodpecker/push/java Pipeline was successful
ci/woodpecker/push/oci-image-build Pipeline was successful
2024-12-09 23:56:31 +01:00
95dcbf99be
discord-ws: Add logging on ops actions
ci/woodpecker/push/java Pipeline was successful
ci/woodpecker/push/oci-image-build Pipeline was successful
2024-12-09 21:26:40 +01:00
9a9580cb87
discord-ws: Reconnect on error
...
ci/woodpecker/push/java Pipeline was successful
ci/woodpecker/push/oci-image-build Pipeline was successful
We should if the connection is reseted by peer due to a network problem
reconnect with authentication.
2024-12-07 21:56:50 +01:00
01738a5f0a
discord-ws: Fix to reconnect on 1000-1006 error codes
ci/woodpecker/push/java Pipeline was successful
ci/woodpecker/push/oci-image-build Pipeline was successful
ci/woodpecker/manual/java Pipeline was successful
ci/woodpecker/manual/oci-image-build Pipeline was successful
2024-12-04 23:14:03 +01:00
5c16c60782
misc: Cleanup
2024-12-04 20:32:46 +01:00
ab51cfb0c5
discrod-ws: Improve BackoffRetryer
...
ci/woodpecker/push/java Pipeline was successful
ci/woodpecker/push/oci-image-build Pipeline was successful
Move static fields into usage since they wher only used once.
Add logging on retry reset.
2024-12-04 20:24:26 +01:00
55eb8bb081
discord-ws: Fix missing final
2024-12-04 20:19:29 +01:00
80f33b6dbc
bot: Add logging on main end
...
ci/woodpecker/push/java Pipeline was successful
ci/woodpecker/push/oci-image-build Pipeline was successful
To see if we reach main end.
2024-12-04 20:08:10 +01:00
9a646b9e8d
discord-ws: Extract resume logic into own class
ci/woodpecker/push/java Pipeline was successful
ci/woodpecker/push/oci-image-build Pipeline was successful
2024-12-04 20:03:08 +01:00
d41570bf55
discord-ws: Improve retry
2024-12-04 19:56:33 +01:00
7e9dbe8bd5
discord-ws: Reset retry count after 5 minutes without retry
ci/woodpecker/push/java Pipeline was successful
ci/woodpecker/push/oci-image-build Pipeline was successful
2024-12-03 00:28:32 +01:00
431433b05d
discord-ws: Fix resuming on < 4000 status codes
ci/woodpecker/push/java Pipeline was successful
ci/woodpecker/push/oci-image-build Pipeline was successful
2024-12-03 00:01:28 +01:00
e310be167c
discord-ws: Improve heartbeat logging
...
ci/woodpecker/push/java Pipeline was successful
ci/woodpecker/push/oci-image-build Pipeline was successful
Log with thread name of the async heartbeat virtual thread.
2024-12-02 23:54:52 +01:00
a51dcf7e1f
discord-ws: Improve heartbeat thread handling
...
ci/woodpecker/push/java Pipeline was successful
ci/woodpecker/push/oci-image-build Pipeline was successful
We don't need to manage interrupts since the sleep call will alreade
throw on interrupt.
2024-12-01 18:27:22 +01:00
8f18158ad0
discord-ws: Add status code 1000 & 1001 to produce unresumable close event
2024-12-01 18:14:13 +01:00
16775d3fd4
discord-ws: Improve logging
2024-12-01 18:13:27 +01:00
ec7be3d5c1
bot: Add missing module for logback-classic
...
ci/woodpecker/push/java Pipeline was successful
ci/woodpecker/push/oci-image-build Pipeline was successful
Needs to be manually added since it is a runtime dependency and is not
seen by the jlink plugin.
2024-11-29 20:55:43 +01:00
b63c89c6e9
build: Set dockerfile syntax to 1
...
ci/woodpecker/push/java Pipeline was successful
ci/woodpecker/push/oci-image-build Pipeline was successful
This should include the 1.4 and all later versions.
The latest version is 1.12.0 so there is a lot of fixes that we where
missing.
2024-11-29 20:08:18 +01:00
cdcd4d0e42
ci: Remove docker build target
...
It no longer exists.
2024-11-29 20:04:43 +01:00
dd800398a9
ci: Update buildx plugin to version 5.0.0
ci/woodpecker/push/java Pipeline was successful
ci/woodpecker/push/oci-image-build Pipeline failed
2024-11-29 19:58:41 +01:00
d343c53dce
ci: Fix file naming
...
ci/woodpecker/push/java Pipeline was successful
ci/woodpecker/push/oci-image-build Pipeline failed
This should make them discoverable again.
2024-11-29 19:54:00 +01:00
689644d28b
ci: Remove unneeded steps
...
The setup is now simpler without all the dependencies.
2024-11-29 19:52:51 +01:00
02c979fe31
misc: Fix formatting
...
Using IntelliJ formatting.
2024-11-29 00:49:16 +01:00
28ee576c2a
doc: Add logging information to the README
2024-11-29 00:45:40 +01:00
c861f7e595
bot: Set the logging level to INFO
2024-11-29 00:35:15 +01:00
610d60aafe
bot: Fix for only handling mention or ref to own message
2024-11-29 00:09:45 +01:00
a486daa81c
discord-rest: Fix status code expectation
...
A successful send will produce a 200 code.
2024-11-28 23:14:47 +01:00
3aa27ef8ff
bot: Fix double thread start
...
Double start will produce following exception:
> java.lang.IllegalThreadStateException: Already started
2024-11-28 23:13:27 +01:00
d614d99642
doc: Update README to new version
2024-11-28 20:46:04 +01:00
f2e5b04c1c
discord-ws: Fix resume if no resume URL is given
...
This can happen if something goes wrong befor auth.
For example with an init with a wrong payload leading to a
4002 error code from the gateway. In general before the ready event.
2024-11-28 20:13:57 +01:00
4f1292377e
bot: Fix execution in new thread
2024-11-28 20:09:30 +01:00
654aca86cc
misc: Update the docker-compose setup
...
To use the new build and configuration way.
2024-11-27 23:45:31 +01:00
034a5152df
bot: Fix not performing the async processing
...
If I don't wait for the future the calls are not made.
Waiting for the response is kinda ugly though and blocks the
main thread.
This should be seen more as a quick fix.
Kinda WIP!
2024-11-27 23:43:01 +01:00
9fe5175f13
bot: Fix not using provided system message
2024-11-27 23:40:50 +01:00
7fe9a82176
discord-ws: Fix sequence counting
...
Do not reset on events like heartbeat acks which have
seq 0/null.
2024-11-27 23:39:53 +01:00
6e01af7572
openai-rest: Fix response deserialization
...
Didn't use the body -_-
2024-11-27 23:38:38 +01:00
9701d3faea
discord-rest: Fix missing content-type header
2024-11-27 23:37:40 +01:00
79a13592c1
discord-rest: Add logging
2024-11-27 23:37:16 +01:00
db872beac5
discord-ws: Add logging
2024-11-27 23:36:47 +01:00
161509ad96
openai-rest: Add logging
2024-11-27 23:36:15 +01:00
ac14f7ad42
bot: Enable debug information in runtime
...
To have stacktraces with information about the code
line with the error.
2024-11-27 23:34:04 +01:00
2ab3c5e01d
build: Package as jlink image
2024-11-27 21:05:05 +01:00
2e928da270
misc: Cleanup
2024-11-23 19:09:45 +01:00
e05f4d0f4b
bot: Add configuration logic
2024-11-23 18:41:29 +01:00