Commit Graph

209 Commits

Author SHA1 Message Date
NovaFox161
5f3f651e57 Fix another okhttp response object not being closed. 2021-07-30 19:35:34 -05:00
NovaFox161
56526c8c0b Accidentally provided discal version as d4j version in heartbeat 2021-07-30 16:06:02 -05:00
NovaFox161
277bfa0ab6 Stop leaking OkHTTP response bodies
Why they did it this way, I have no clue, but it should be fixed now
2021-07-29 16:58:09 -05:00
NovaFox161
0467bf3c30 Transition to logback fully with custom appender for discord webhooks
This will be the standard logging we use for now until
the codebase is fully kotlin instead of kotlin/java, in which
time we will switch to klogger (probably)
2021-07-29 16:30:35 -05:00
NovaFox161
50b67414ff Update to d4j 3.2.0-RC2
Other updated deps:
kotlinx serialization 1.2.2
okhttp 4.9.1
org.json 20210307
google-api-client 1.32.1
google-api-services-calendar v3-rev20210708-1.32.1
google-oauth-client-jetty 1.31.5
r2dbc-pool 0.8.7.RELEASE
r2dbc-mysql 0.8.2.RELEASE
thymeleaf & thymeleaf-spring5 3.0.12.RELEASE
thymeleaf-layout-dialect 2.5.3
flyway-core 7.11.2
mysql-connector-java 8.0.25
spring-r2dbc 5.3.9
2021-07-28 15:25:00 -05:00
NovaFox161
2130b0b1cf Rewrite Heartbeat sending in kotlin
Remove @JvmStatic from several functions that are no longer accessed with Java
2021-07-28 14:19:58 -05:00
NovaFox161
de35f67397 Add calendar_number column to certain objects
This way these objects can be focused toward a specific calendar (or all calendars for announcements) once multi-cal support is done
2021-07-27 19:16:37 -05:00
NovaFox161
c8f607e4ff Consolidate a lot of google related code (and abstracted)
Convert exception classes to kotlin
2021-07-27 10:57:09 -05:00
NovaFox161
878c12be87 Upgrade to D4J 3.2.0-RC1
This means I redid everything that used Consumer<Spec> and now just Spec

Also cleaned up some other code too. Potentially fix database connection leaking
2021-07-23 11:37:18 -05:00
NovaFox161
14d7dc8ba6 Remove joda-time in favor of using java.time 2021-07-21 12:29:10 -05:00
NovaFox161
12ca201323 Undo last commit -- it broke everything lol 2021-07-19 13:12:23 -05:00
NovaFox161
2edca34153 Set status to online without activity once ready event is received 2021-07-19 12:55:08 -05:00
NovaFox161
e018fd5bd3 Okay, this should work since [[ is bash-specific 2021-07-19 12:41:44 -05:00
NovaFox161
ac2cba224a Lets try again. Bash on my machine handles the logic correctly... 2021-07-19 12:24:12 -05:00
NovaFox161
fe6dfb54a3 Use 'latest' image tag on snapshot versions
This is so I don't have to keep changing the k8s dev deployments
2021-07-19 12:12:57 -05:00
NovaFox161
12da0434fb It now compiles! Also remove unneeded deps 2021-07-05 19:45:46 -05:00
NovaFox161
a95c99897b Convert GlobalConst to kotlin + Fix serialization bugs
GlobalConst renamed to GlobalVal
Use global kx serialization json instance
Status changer only changes status every 5 minutes
2021-07-04 15:16:16 -05:00
NovaFox161
c6bfd4fcf2 Added debugger options to dockerfile
Working on figuring out what is causing the stalling
2021-07-02 12:04:27 -05:00
NovaFox161
5152a46b23 This completes the fix for announcement editing 2021-06-30 16:45:43 -05:00
NovaFox161
08aa2e0fe1 I am dumb, accidentally used role method not channel method 2021-06-30 16:07:21 -05:00
NovaFox161
9c3c5917f7 Getting closer. Still trying to fix announcement editing 2021-06-30 15:55:53 -05:00
NovaFox161
52d1b9f9a0 Attempting a fix, removed debugging statements 2021-06-30 14:49:23 -05:00
NovaFox161
56b1e6c18f All the debugging! 2021-06-30 13:33:40 -05:00
NovaFox161
ff93db0584 All the debugging! 2021-06-30 13:10:45 -05:00
NovaFox161
b21e60d5aa Debugging announcement editor messages not posting 2021-06-29 13:02:51 -05:00
NovaFox161
cf660011d4 Remove debug statement from testing previous bug 2021-06-26 16:08:40 -05:00
NovaFox161
a74aa3dc65 This should fix issues with calendar wizard messages 2021-06-26 15:52:55 -05:00
NovaFox161
a5653688b7 Testing theory regarding messages not sending 2021-06-25 17:01:48 -05:00
NovaFox161
7c290a5760 This should fix bot status not being updated 2021-06-25 13:59:02 -05:00
NovaFox161
f8e7b22970 This should fix stability issues caused by blocking code 2021-06-24 23:52:26 -05:00
NovaFox161
0e55589a5c Move lang files from client to core module
This fixes langs not being included in the jars properly, but also mimics how the eventual change to a new i18n system will be setup in the core module
2021-06-24 13:17:42 -05:00
NovaFox161
efaaf8054f Remove properties for old restart service
It was never fully realized anyway, hopefully I can make a k8s orchestrator to manage discal bot pods
2021-06-24 12:31:10 -05:00
NovaFox161
6a2843b46e Add FQDN for base images to satisfy podman
Also add flag to write events to file rather than journal
2021-06-23 22:21:49 -05:00
NovaFox161
518780c8af This should allow jenkins to build the docker images with podman 2021-06-23 15:46:02 -05:00
NovaFox161
844bb550af I'm getting further, hopefully
Spring might be the cause and it might not be jib, still no idea
2021-06-19 19:27:50 -05:00
NovaFox161
b9fde5f7c5 Change application.properties to web/client/server.properties
This should fix the issue with loading the application in a container
2021-06-19 12:06:08 -05:00
NovaFox161
93c1d81a7e Container images weren't being built correctly
This should hopefully fix it, but I dunno
2021-06-17 19:14:47 -05:00
NovaFox161
b3e9094a6a Forgot to add creation time to jib 2021-06-17 13:08:27 -05:00
NovaFox161
979231681f This should be all new handling of internal credentials 2021-06-16 21:30:08 -05:00
NovaFox161
ed5915c127 Implement custom DataStore for google credentials
Need to switch from file based storage storing them in a database
2021-06-16 15:19:15 -05:00
NovaFox161
e31f116f41 Use env variables for determining shard count/index
Its a really messy way, but k8s is dumb
2021-06-14 23:21:25 -05:00
NovaFox161
0809f9eba1 Use single MySQL connection pool
Also converted DatabaseManager to kotlin,
using resources for langs,
and some other small prep for supporting k8s well
2021-06-14 22:26:41 -05:00
NovaFox161
d9a439c7bc Theoretically, this should allow jib to create images for discal for k8s 2021-06-11 12:42:54 -05:00
NovaFox161
7178533332 Start using Dependency Injection
Starting small for now, will slowly expand it
2021-05-04 18:07:39 -05:00
NovaFox161
50e99d201b Migrate over to Spring WebFlux and rewrite API endpoints in Kotlin
API v1 has been discontinued

Add docker-compose for local development testing. Note: This is not persistent, attempting to run this for production will be very very bad
2021-05-04 16:14:57 -05:00
NovaFox161
58625be0a3 Merge branch 'master' of https://github.com/DreamExposure/DisCal-Discord-Bot into feature/rsvp-role 2021-03-21 09:21:09 -05:00
NovaFox161
073e4075cc Upgrade to D4J 3.2.0-SNAPSHOT
This way I can utilize my contrib to d4j that allows easier checking of role permissions on the Rest Client

Also sets explicit intents and updates sass.
2021-03-20 04:47:06 -05:00
NovaFox161
ecf7aef24f Add 'quotaUser' to google cal API requests 2021-03-17 18:34:25 -05:00
NovaFox161
b0ec4a7b82 External cal all day event editing now fixed 2021-03-11 08:30:15 -06:00
NovaFox161
3e0bd5f4f6 Fix issue#40 and clean up event embed code and restyle event embeds 2021-02-11 23:42:03 -06:00