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
288be7e4f5
Remove permission denied message
2019-11-11 19:49:45 +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
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
c299406d69
Add logging and error handling to timeouts
2019-07-25 20:19:01 +02:00
kageru
3944b07ec0
Don’t remove managed roles for timeout
2019-07-23 23:27:04 +02:00
kageru
93a6e92191
Add minimal implementation of timeout feature
2019-07-23 21:50:55 +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
d425687fb5
Cleanup in main classes
2019-07-17 23:17:31 +02:00
kageru
e6f73bb178
Minor cleanup in SetConfigFeature
2019-07-17 22:56:31 +02:00
kageru
31c5cd7135
Linefeeds in DebugFeature
2019-07-17 22:52:47 +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
f82ed7be56
Actually persist config after reloading it
2019-07-14 21:07:19 +02:00
kageru
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
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
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
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
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
32eca9e7aa
Add interfaces for easier feature handling
2019-07-07 14:32:40 +02:00
kageru
ac75239197
Add optional !welcome command for welcome feature ( closes #7 )
2019-07-07 11:08:49 +02:00
kageru
1a8c9fdb6f
move field declaration in debug features up
2019-06-15 22:21:53 +02:00
kageru
d662784d86
Allow bot owner to print debug stats
2019-06-15 14:15:34 +02:00
kageru
f0db8b5c26
Put features into separate files
2019-06-15 12:59:02 +02:00
kageru
c8847824ee
ktlint
2019-06-15 11:49:32 +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
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