Commit Graph

119 Commits

Author SHA1 Message Date
kageru e3e0c07fa2 find redirect target by user ID 2023-08-14 10:29:27 +02:00
kageru 80111b2bbf update javacord and run ktlint 2023-08-14 10:14:19 +02:00
kageru 997284fb54
Set all intents (javacord 3.1 migration) 2020-10-30 10:57:48 +01:00
kageru 2b40e0578f
add logging for unwrap operations 2020-07-22 13:52:20 +02:00
kageru 3838cde65e
Revert "Further improve stacktrace logging"
This reverts commit 6b21625f19.

It was a bad idea because konf-stacktraces are apparently infinitely
recursive
2020-07-22 13:47:30 +02:00
kageru 6b21625f19
Further improve stacktrace logging 2020-07-22 13:45:06 +02:00
kageru 6b52db8324
Improve config parser errors 2020-07-22 13:38:59 +02:00
kageru d7594c29e5
update dependencies 2020-05-13 17:59:36 +02:00
kageru 91259094ed
Permissions: match role purely by name 2020-04-12 00:58:34 +02:00
kageru 83a7b2cbdf
Fix tests 2020-03-10 13:00:08 +01:00
kageru 39083d8248
Indent with 2 spaces instead of 4 2019-11-14 15:10:30 +01:00
kageru 5c7efcd10e
Add ktlint to deployment process 2019-11-14 14:59:35 +01:00
kageru cd9ee0e881
Simplifications 2019-11-13 23:18:28 +01:00
kageru f742383f38
Reimplement !vc parsing with Either 2019-11-13 22:45:34 +01:00
kageru 07c45d84d0
Generify mapFirst/Second on Tuples 2019-11-13 22:23:03 +01:00
kageru a05f2e558b
Add extensions for mapping tuple values 2019-11-13 16:59:44 +01:00
kageru f1b727662a
replace CompletableFuture.failed with Option folding 2019-11-12 22:22:32 +01:00
kageru ccf76e7c64
Sort extensions by target 2019-11-12 22:10:26 +01:00
kageru 69c3ae80b8
Consistently use Javacord extensions 2019-11-12 22:02:32 +01:00
kageru 2c56e1959a
Use Either monad for timeout parsing 2019-11-12 21:13:01 +01:00
kageru 50b97fdec7
No longer throw exceptions for role/channel queries 2019-11-12 19:25:42 +01:00
kageru 3d813384e2
Start migrating to Arrow Options 2019-11-11 23:52:14 +01:00
kageru 7eadb2d67d
Shorten command permission checks 2019-11-11 20:00:53 +01:00
kageru 288be7e4f5
Remove permission denied message 2019-11-11 19:49:45 +01:00
kageru a8ed168122
Simplify Optionals in TestUtil 2019-11-11 18:54:43 +01:00
kageru 5cc34c9e29
Add arrow-kt 2019-11-11 18:10:28 +01:00
kageru 231b27176a
Remove now-fixed shutdown hook of mapdb
We’ve had our own for a while now. Looks like their finally started
working which actually caused some issues (see last two commits).
2019-11-06 07:39:22 +01:00
kageru 1bc26951f7
Enable transactions for persistent storage 2019-11-06 07:35:52 +01:00
kageru 58307c9743
Allow starting the bot even after the persistence was improperly closed 2019-11-06 07:33:27 +01:00
kageru 2be20880b8
Remove debug print 2019-10-19 12:44:55 +02:00
kageru af65dcc06b
Add temporary VCs 2019-10-19 12:25:23 +02:00
kageru 56475ef685
Fix indentation 2019-10-18 22:15:22 +02:00
kageru d6492bae8f
Rewrite config to use Konf (4): Features
The entire config parsing is now rewritten. This entirely removes toml4j
in favor of Konf. It also removes all remaining RawConfig logic.
2019-10-18 22:03:57 +02:00
kageru bb03474bf5
Rewrite config to use Konf (3): Commands 2019-10-18 22:03:56 +02:00
kageru 17c7120796
Rewrite config to use Konf (2): Localization 2019-10-18 22:03:56 +02:00
kageru e31d46ceb5
Rewrite config to use Konf (1): SystemConfig 2019-10-18 22:03:18 +02:00
kageru 897457336d
Persist command counter between restarts 2019-09-20 19:01:47 +02:00
kageru 1672b4c62a
More simplifications 2019-09-17 23:24:49 +02:00
kageru 828845f230
Simplify message handling 2019-09-17 23:22:22 +02:00
kageru ba913f2bed
Fix lateinit property initialization order 2019-09-17 23:01:38 +02:00
kageru e7f47b7420
Clean up Util.kt 2019-09-17 22:59:55 +02:00
kageru c49a122622
Update dependencies 2019-09-17 22:04:52 +02:00
kageru 684926f1c5
Update default config to use role names instead of IDs 2019-09-17 20:42:03 +02:00
kageru f314c20dd8
Make command matching case-insensitive 2019-08-30 15:27:11 +02:00
kageru f871d2a381
Only break from command match loop after successfully executing a command
This means you can have multiple commands with the same or overlappings triggers,
and the bot will execute the first the user has access to.
2019-08-07 15:13:16 +02:00
kageru e3219c7800
Revert "Remove toPairs helper in favor of stdlib functionality"
This reverts commit 60797c21d0.
2019-08-05 22:14:07 +02:00
kageru 0ae5e83641
Add logging for errors while sending embeds
Not that it’s worth much because the discord API is a useless piece of
trash when it comes to error messages. Like, seriously. Might as well
throw no error at all.
Received a 400 response from Discord with body {"embed": ["fields"]}!
Thanks for nothing. Fix in next commit.
2019-08-05 22:12:45 +02:00
kageru 60797c21d0
Remove toPairs helper in favor of stdlib functionality 2019-08-01 13:15:05 +02:00
kageru 35bd570c93
Add optional reason to timeout command (closes #14) 2019-07-28 18:50:53 +02:00
kageru b4c2275670
Send DM to user after timeout 2019-07-25 21:27:25 +02:00