Commit Graph

36 Commits

Author SHA1 Message Date
cd9ee0e881
Simplifications 2019-11-13 23:18:28 +01:00
f1b727662a
replace CompletableFuture.failed with Option folding 2019-11-12 22:22:32 +01:00
ccf76e7c64
Sort extensions by target 2019-11-12 22:10:26 +01:00
69c3ae80b8
Consistently use Javacord extensions 2019-11-12 22:02:32 +01:00
50b97fdec7
No longer throw exceptions for role/channel queries 2019-11-12 19:25:42 +01:00
7eadb2d67d
Shorten command permission checks 2019-11-11 20:00:53 +01:00
288be7e4f5
Remove permission denied message 2019-11-11 19:49:45 +01: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
e7f47b7420
Clean up Util.kt 2019-09-17 22:59:55 +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
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
d425687fb5
Cleanup in main classes 2019-07-17 23:17:31 +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
c8123cca4e
Make all log methods static 2019-07-17 21:16:17 +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
f56df24c4f
Split Globals into Globals and Config 2019-07-13 15:39:50 +02:00
c59c0fdcd6
Rewrite Config to be a ConfigParser object 2019-07-13 15:32:23 +02:00
23afb34a97
ktlint (again) 2019-07-13 14:52:05 +02:00
dc14e3ee1e
Use lists for embed content configuration (fixes #12) 2019-07-12 14:08:22 +02:00
cb753b47ed
Added configurable role assignments (closes #3) 2019-07-11 22:17:20 +02:00
344148cd03
Add features as configurable command output 2019-07-11 21:24:47 +02:00
931a8cdf19
Added !help feature 2019-07-11 20:14:22 +02:00
b08deb6e8d
Add configurable embeds as command outputs 2019-07-07 10:54:20 +02:00
3890b2bba9
Log command executions 2019-06-15 14:35:17 +02:00
d662784d86
Allow bot owner to print debug stats 2019-06-15 14:15:34 +02:00
cefadba58f
Refactor redundant nonnull assertion 2019-06-15 12:48:23 +02:00
ab1d4729f4
Send uncaught errors to bot owner via DM 2019-06-15 12:27:20 +02:00
c8847824ee
ktlint 2019-06-15 11:49:32 +02:00
f03f9bdb9f
Make permission denied message optional 2019-06-15 11:47:11 +02:00
62bdb582de
Properly await future before checking their return code 2019-06-13 00:19:02 +02:00
7ebafc9958
Completely rewrote config
Added a rawconfig as an intermediate step when parsing the TOML.
This will make nullability much more reliable and also gives me lots of
options in the future. It also broke all tests because reading the
config (not the raw config) now depends on the discord API. :tehe:
2019-06-12 23:43:36 +02:00