Commit Graph

55 Commits

Author SHA1 Message Date
kageru 80111b2bbf update javacord and run ktlint 2023-08-14 10:14:19 +02:00
kageru d7594c29e5
update dependencies 2020-05-13 17:59:36 +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 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 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 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 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 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
kageru 8560c3d82e
Add tests to timeout feature (closes #4) 2019-07-25 21:04:13 +02:00
kageru 7efeb9bace
Add logging for welcome messages 2019-07-23 11:26:48 +02:00
kageru 39ceaffa6c
Pull event handling into interface 2019-07-17 23:47:12 +02:00
kageru b9f1c6e540
Make message processing an extension function 2019-07-17 23:22:18 +02:00
kageru cdc053a443
Added test for SetConfigFeature
Closes #10
2019-07-17 21:42:02 +02:00
kageru 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
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 731867f59e
Use utility function to check embed contents 2019-07-11 20:39:17 +02:00
kageru 931a8cdf19
Added !help feature 2019-07-11 20:14:22 +02:00
kageru 32eca9e7aa
Add interfaces for easier feature handling 2019-07-07 14:32:40 +02:00
kageru 4150187bbe
Pull commands out of config object 2019-07-07 14:19:13 +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 2ed5d6ab19
added tests for welcome feature 2019-06-15 12:03:43 +02:00
kageru f03f9bdb9f
Make permission denied message optional 2019-06-15 11:47:11 +02:00
kageru 120079ba3d
fixed all unit tests
also added a new one I noticed was missing
2019-06-14 23:16:31 +02:00
kageru 3d80540c03
Allow partial config reloads 2019-06-14 21:23:17 +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
kageru 1836844950
Send a copy of each deleted message to the original author 2019-06-10 14:15:03 +02:00
kageru 41a1e62574
use json annotations to make config more intuitive 2019-06-10 13:03:18 +02:00
kageru f2ece85d56
allow excluding roles from commands 2019-06-10 09:19:03 +02:00
kageru 1da7800f3d
make mocks nicer 2019-06-10 08:32:18 +02:00
kageru 92dc0a3322
Added redirect action 2019-06-09 19:28:32 +02:00