Commit Graph

119 Commits

Author SHA1 Message Date
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 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 18ea000b9d
Better prefix trimming for redirects 2019-06-10 08:18:44 +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 3fd802682b
add unit tests 2019-06-08 21:52:47 +02:00
kageru da8b717831
put bot initialization in separate file 2019-06-08 21:52:30 +02:00
kageru 24d43c4a7f
support @mention of author in response 2019-06-08 21:14:57 +02:00
kageru 80eca6a2af
Less nesting in config 2019-06-08 13:03:33 +02:00
kageru c72219eabb
properly parse config with nullability 2019-06-08 12:28:14 +02:00
kageru dd37444393
add match types to config 2019-06-08 12:27:57 +02:00
kageru effd106847
bot runs and can ping/pong 2019-06-08 11:07:52 +02:00