Commit Graph

39 Commits

Author SHA1 Message Date
kageru 91259094ed
Permissions: match role purely by name 2020-04-12 00:58:34 +02: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 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 50b97fdec7
No longer throw exceptions for role/channel queries 2019-11-12 19:25:42 +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 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 e7f47b7420
Clean up Util.kt 2019-09-17 22:59:55 +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 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
kageru 3944b07ec0
Don’t remove managed roles for timeout 2019-07-23 23:27:04 +02:00
kageru d425687fb5
Cleanup in main classes 2019-07-17 23:17:31 +02:00
kageru c400ab7369
Reduce complexity of redirect text handling 2019-07-17 22:47:47 +02:00
kageru 691bc408c0
Refactor embed handling 2019-07-17 22:40:44 +02:00
kageru 8be98f161f
Make sending embeds nicer 2019-07-17 22:06:20 +02:00
kageru c8123cca4e
Make all log methods static 2019-07-17 21:16:17 +02:00
kageru 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
kageru f56df24c4f
Split Globals into Globals and Config 2019-07-13 15:39:50 +02:00
kageru c59c0fdcd6
Rewrite Config to be a ConfigParser object 2019-07-13 15:32:23 +02:00
kageru 23afb34a97
ktlint (again) 2019-07-13 14:52:05 +02:00
kageru dc14e3ee1e
Use lists for embed content configuration (fixes #12) 2019-07-12 14:08:22 +02:00
kageru cb753b47ed
Added configurable role assignments (closes #3) 2019-07-11 22:17:20 +02:00
kageru 344148cd03
Add features as configurable command output 2019-07-11 21:24:47 +02:00
kageru 931a8cdf19
Added !help feature 2019-07-11 20:14:22 +02:00
kageru b08deb6e8d
Add configurable embeds as command outputs 2019-07-07 10:54:20 +02:00
kageru 3890b2bba9
Log command executions 2019-06-15 14:35:17 +02:00
kageru d662784d86
Allow bot owner to print debug stats 2019-06-15 14:15:34 +02:00
kageru cefadba58f
Refactor redundant nonnull assertion 2019-06-15 12:48:23 +02:00
kageru ab1d4729f4
Send uncaught errors to bot owner via DM 2019-06-15 12:27:20 +02:00
kageru c8847824ee
ktlint 2019-06-15 11:49:32 +02:00
kageru f03f9bdb9f
Make permission denied message optional 2019-06-15 11:47:11 +02:00
kageru 62bdb582de
Properly await future before checking their return code 2019-06-13 00:19:02 +02:00
kageru 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