kageru
997284fb54
Set all intents (javacord 3.1 migration)
2020-10-30 10:57:48 +01:00
kageru
3838cde65e
Revert "Further improve stacktrace logging"
...
This reverts commit 6b21625f19
.
It was a bad idea because konf-stacktraces are apparently infinitely
recursive
2020-07-22 13:47:30 +02:00
kageru
6b21625f19
Further improve stacktrace logging
2020-07-22 13:45:06 +02:00
kageru
6b52db8324
Improve config parser errors
2020-07-22 13:38:59 +02:00
kageru
39083d8248
Indent with 2 spaces instead of 4
2019-11-14 15:10:30 +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
5cc34c9e29
Add arrow-kt
2019-11-11 18:10:28 +01: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
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
1672b4c62a
More simplifications
2019-09-17 23:24:49 +02:00
kageru
828845f230
Simplify message handling
2019-09-17 23:22:22 +02:00
kageru
ba913f2bed
Fix lateinit property initialization order
2019-09-17 23:01:38 +02:00
kageru
e7f47b7420
Clean up Util.kt
2019-09-17 22:59:55 +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
93a6e92191
Add minimal implementation of timeout feature
2019-07-23 21:50:55 +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
d425687fb5
Cleanup in main classes
2019-07-17 23:17:31 +02:00
kageru
c8123cca4e
Make all log methods static
2019-07-17 21:16:17 +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
65a4ac5bed
Parse readable message content for commands
2019-07-11 23:51:03 +02:00
kageru
344148cd03
Add features as configurable command output
2019-07-11 21:24:47 +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
ac75239197
Add optional !welcome command for welcome feature ( closes #7 )
2019-07-07 11:08:49 +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
d6d45f8df6
move main function to kagebot class
2019-06-15 12:55:47 +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
120079ba3d
fixed all unit tests
...
also added a new one I noticed was missing
2019-06-14 23:16:31 +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
kageru
92dc0a3322
Added redirect action
2019-06-09 19:28:32 +02:00
kageru
6d7cd5b776
Add neededRoles parameter to command
2019-06-09 01:04:00 +02:00
kageru
a91dda33c7
remove admin parameter from config
2019-06-09 00:03:48 +02:00
kageru
208de19ff4
made response optional
2019-06-08 23:51:29 +02:00
kageru
4aaebf2a0a
add deletion parameter to command
2019-06-08 23:50:39 +02:00
kageru
da8b717831
put bot initialization in separate file
2019-06-08 21:52:30 +02:00