Commit Graph

168 Commits

Author SHA1 Message Date
Nova Fox
fd1602bc4f Announcement runner rewrite (#114)
Full rewrite of the announcement runner in kotlin and remove several now-unused deprecated methods
2021-10-02 23:01:01 -05:00
NovaFox161
76707f6f45 Maybe I need to explicitly compare choices 2021-10-01 14:58:20 -05:00
NovaFox161
d805e07224 Attempting to see if recursive things are a good idea 2021-10-01 14:35:11 -05:00
NovaFox161
cde28d1a18 Update to latest D4J snapshot 2021-09-21 22:07:03 -05:00
NovaFox161
aae9927af3 command registrar will no longer always update commands on boot 2021-09-16 22:40:51 -05:00
NovaFox161
9b2c9ab98e This should fix compilation errors 2021-09-15 13:25:37 -05:00
NovaFox161
91afc55f3c Convert rsvp command to slash command
Also deprecate most of the java util classes and clean up code in several places that were touched by this change
2021-08-25 15:17:45 -06:00
NovaFox161
75eabd458e Code cleanup
Convert a few event listeners to kotlin

Remove discalChannel as this is no longer needed since slash commands can be restricted by
2021-08-24 12:08:44 -06:00
Nova Fox
b1c12b2788 Convert to Gradle (#112)
Fully convert to using Gradle instead of Maven for dependency management and building.

This change also includes using Jib again as it works properly for multi-module projects with Gradle.

Some files have been relocate to places that semantically make more sense and work will with a proper build system.

Added GitProperties for handling certain variables that need to be set at build time (for example the version name seen by users) as these were previously set through Maven hackery.
2021-08-23 11:13:44 -05:00
NovaFox161
7cc2367ed9 Add settings slash command and rework several things to fit it better
Deprecate several things
2021-08-10 12:04:04 -05:00
NovaFox161
120c0c4a8f Have database migration called by spring rather than manually 2021-08-07 07:49:28 -04:00
NovaFox161
8dfbf29d34 Add events slash command 2021-08-06 15:09:02 -04:00
NovaFox161
44a8bfa5ac Use d4j's object mapper 2021-08-04 17:23:44 -04:00
NovaFox161
379d07e6db Forgot to change this to handle a changed signature 2021-08-04 16:23:03 -04:00
NovaFox161
8bdb23da4b Add link calendar command as slash command
Will be deleting the message based version if this works
2021-08-04 16:15:45 -04:00
NovaFox161
5f3f651e57 Fix another okhttp response object not being closed. 2021-07-30 19:35:34 -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
abf21a4384 Removal all usages of Throwable#printStacktrace()
These should be put into the logger instead
2021-07-29 16:42:21 -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
c8f607e4ff Consolidate a lot of google related code (and abstracted)
Convert exception classes to kotlin
2021-07-27 10:57:09 -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
bd3dec8012 Clean up pom files 2021-07-07 20:48:16 -05:00
NovaFox161
130a08f14f Fix invalid error catching 2021-07-07 18:40:38 -05:00
NovaFox161
3642cc4bf9 I don't understand logback, but it works again 2021-07-06 10:31:44 -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
5ec6682ffb Testing theory 1 for timeouts 2021-07-01 21:44:18 -05:00
NovaFox161
c8d0323d83 Debugging API timeouts 2021-07-01 20:49:18 -05:00
NovaFox161
447b9e177b Just cors being cors 2021-07-01 14:52:57 -05:00
NovaFox161
ffbb194f94 Wildcard origin not allowed 2021-07-01 14:12:13 -05:00
NovaFox161
969064b532 Fix CORS, fix incorrect serialization of guild ID in Calendar 2021-07-01 13:37:06 -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
93182a0b32 Am dumb, made typo, should work now 2021-06-23 23:23:29 -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
f194dbf2c1 Accidentally changed grant types because google is weird 2021-06-16 23:55:28 -05:00
NovaFox161
6b23e6cc6d I am a dumb tonight 2021-06-16 23:42:24 -05:00
NovaFox161
e10fc1f64d Ugh. I think this will do what I want 2021-06-16 23:33:01 -05:00
NovaFox161
979231681f This should be all new handling of internal credentials 2021-06-16 21:30:08 -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