Commit Graph

101 Commits

Author SHA1 Message Date
1bc26951f7
Enable transactions for persistent storage 2019-11-06 07:35:52 +01:00
58307c9743
Allow starting the bot even after the persistence was improperly closed 2019-11-06 07:33:27 +01:00
2be20880b8
Remove debug print 2019-10-19 12:44:55 +02:00
af65dcc06b
Add temporary VCs 2019-10-19 12:25:23 +02:00
5a95138861
Fix link in readme 2019-10-18 22:17:14 +02:00
56475ef685
Fix indentation 2019-10-18 22:15:22 +02:00
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
bb03474bf5
Rewrite config to use Konf (3): Commands 2019-10-18 22:03:56 +02:00
17c7120796
Rewrite config to use Konf (2): Localization 2019-10-18 22:03:56 +02:00
e31d46ceb5
Rewrite config to use Konf (1): SystemConfig 2019-10-18 22:03:18 +02:00
87cb943712
Update dependencies 2019-10-18 22:03:18 +02:00
897457336d
Persist command counter between restarts 2019-09-20 19:01:47 +02:00
1672b4c62a
More simplifications 2019-09-17 23:24:49 +02:00
828845f230
Simplify message handling 2019-09-17 23:22:22 +02:00
ba913f2bed
Fix lateinit property initialization order 2019-09-17 23:01:38 +02:00
e7f47b7420
Clean up Util.kt 2019-09-17 22:59:55 +02:00
c49a122622
Update dependencies 2019-09-17 22:04:52 +02:00
684926f1c5
Update default config to use role names instead of IDs 2019-09-17 20:42:03 +02:00
f314c20dd8
Make command matching case-insensitive 2019-08-30 15:27:11 +02:00
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
e3219c7800
Revert "Remove toPairs helper in favor of stdlib functionality"
This reverts commit 60797c21d09ff70f465745b2a9764d78a8a14fe4.
2019-08-05 22:14:07 +02:00
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
60797c21d0
Remove toPairs helper in favor of stdlib functionality 2019-08-01 13:15:05 +02:00
35bd570c93
Add optional reason to timeout command (closes #14) 2019-07-28 18:50:53 +02:00
b4c2275670
Send DM to user after timeout 2019-07-25 21:27:25 +02:00
8560c3d82e
Add tests to timeout feature (closes #4) 2019-07-25 21:04:13 +02:00
c299406d69
Add logging and error handling to timeouts 2019-07-25 20:19:01 +02:00
7bbcaba49c
Close DB on shutdown
Apparently, we can’t trust the library to handle this, as their hook
seems to fail.
2019-07-23 23:31:23 +02:00
3944b07ec0
Don’t remove managed roles for timeout 2019-07-23 23:27:04 +02:00
93a6e92191
Add minimal implementation of timeout feature 2019-07-23 21:50:55 +02:00
74c2f643f9
Add simple Dao to persistently store key, value pairs 2019-07-23 19:22:07 +02:00
7efeb9bace
Add logging for welcome messages 2019-07-23 11:26:48 +02:00
39ceaffa6c
Pull event handling into interface 2019-07-17 23:47:12 +02:00
b9f1c6e540
Make message processing an extension function 2019-07-17 23:22:18 +02:00
d425687fb5
Cleanup in main classes 2019-07-17 23:17:31 +02:00
e6f73bb178
Minor cleanup in SetConfigFeature 2019-07-17 22:56:31 +02:00
31c5cd7135
Linefeeds in DebugFeature 2019-07-17 22:52:47 +02:00
d6320bb5de
Simplify config file loading 2019-07-17 22:51:36 +02:00
c400ab7369
Reduce complexity of redirect text handling 2019-07-17 22:47:47 +02:00
691bc408c0
Refactor embed handling 2019-07-17 22:40:44 +02:00
8be98f161f
Make sending embeds nicer 2019-07-17 22:06:20 +02:00
cdc053a443
Added test for SetConfigFeature
Closes #10
2019-07-17 21:42:02 +02:00
c8123cca4e
Make all log methods static 2019-07-17 21:16:17 +02:00
6069795caa
Add deployment script 2019-07-17 21:10:50 +02:00
f82ed7be56
Actually persist config after reloading it 2019-07-14 21:07:19 +02:00
d0b3bb608b
Reload config at runtime via command + attachment
This implements #10, but I want to write tests before closing that.
2019-07-14 20:40:23 +02:00
8a1308f98d
Added readme and changelog 2019-07-14 18:36:36 +02:00
b0d3475469
Add getConfig feature to retrieve the current config file
This implements #11 and is preparation for config reloading at runtime
2019-07-14 17:14:23 +02:00
911707a680
Embeds now consistently show the current time
Fixes #13. Thanks to CommanderLook for pointing this out.
2019-07-14 16:36:11 +02:00
b47dc34ff0
Add .idea to gitignore 2019-07-13 15:40:27 +02:00