Sheldan
c44eb80fc5
added message to user initiated context
...
fixed templates for ban and kick logging
refactored kicking service
fixed guild not found exception template
added command validator to be used for unit testing commands
added default values for command configuration
changed some interfaces to message channel instead of text channel
added separate executor service for un-mutes, which is shared
updated spring boot version to 2.3.1
removed database connection string from properties
added logback configuration
changed some future logic in purge
refactored error message for un mute, when there is no active mute
refactored listener interface and removed usage of context utils
added tests for moderation services
2020-06-28 11:13:56 +02:00
Sheldan
8acd4f818d
Fixed multiple server handling for rank command, without this the rank was global, and did not limit the rank to the server
...
defined the name table name for AUserInAServer
2020-06-19 00:36:41 +02:00
Sheldan
19a7d09576
updated javadoc for experience tracking
...
added/changed some javadoc for mod mail
some small interface changes
changed a few methods to actually use the exists mechanic, instead of checking for null values
added some templates instead of hard coded strings
fixed some bugs related to mod mail
2020-06-18 23:30:39 +02:00
Sheldan
ac93440546
added tests for utility module
...
refactored various commands and services
optimized code for message embeds
removed emoteUtils completely and moved to service
removed suggestion validation, because its now done via feature config
fixed regex for discord links
changed template to handle the case in which a member which suggested it originally left the server
added suggestion update exception in cases the message to edit, does not qualify as a suggestion
added check to not allow cross server quoting and added test case
refactored mocking for jda objects
2020-06-10 13:04:39 +02:00
Sheldan
a577932c42
removed instance specific modules from code base
...
fixed user experience object not being created
removed top module, because it does not serve a purpose anymore
2020-06-06 16:22:43 +02:00
Sheldan
d14e917329
added overview to existing post targets if no parameter is provided for the post target command
2020-06-05 17:51:06 +02:00
Sheldan
1091e66013
added purge command to delete messages via bulk delete
...
adapted api of status message service
added concept of self destruct command results, these will cause the command message to be deleted
2020-06-03 19:47:50 +02:00
Sheldan
563564aabe
added tests for experience tracking module
...
refactored some things in experience tracking
changed the paging behaviour for leader board and added check for negative numbers
fixed rank not being correct for further pages
added test-common module to have some common code für tests
fixed command creation
2020-06-02 15:07:27 +02:00
Sheldan
3fa5edf67a
addressed sonar code smells
2020-05-27 19:38:43 +02:00
Sheldan
175a92408c
addressed some sonar issues
2020-05-27 18:41:31 +02:00
Sheldan
8413bc8314
added possibility to the ID of a user instead of a mention for a member parameter
2020-05-27 15:39:12 +02:00
Sheldan
de4eeeacca
added serverInfo help
...
added userInfo command
added offsetDateTime to the custom date formatter
2020-05-27 15:10:54 +02:00
Sheldan
a682428028
merged exceptions for setup steps to one common exception, which contains the concrete exception
...
added exception handling for incorrect mod mail category id
2020-05-26 11:48:12 +02:00
Sheldan
158d957eee
added exception handling (with templated messages) for setup of post target and system config
2020-05-26 00:51:35 +02:00
Sheldan
213f42ffbd
added current values to post post target
...
added support for custom setup steps for each feature
added mod mail category setup step
2020-05-25 23:11:44 +02:00
Sheldan
3714fd2582
added default value handling to setup wizard
...
added table to store the default values of the whole system, to not require the property files
added ability to cancel setup wizard
2020-05-22 20:13:24 +02:00
Sheldan
992357b2cb
added setup command which includes an interactive process in order to setup features
...
the current supported features are post targets and system config
the wizard includes a summary step where the user can confirm the changes
removed some unnecessary validators, which were basically just validating the system config from some features
fixed post target name
2020-05-22 17:25:44 +02:00
Sheldan
1e667686d3
introduced *all* intents abstracto requires in order to function...., because with the new version the guild members intent was not used, and various features were not functioning
...
added initial message also to be send
2020-05-20 00:31:43 +02:00
Sheldan
5b7d224fd9
added bundled third party licenses
2020-05-18 01:45:03 +02:00
Sheldan
0260862e8e
added command to set roles for which experience gain is disabled
...
and separate command to remove them from the list again
added command to see all roles for which experience gain is disabled
2020-05-17 20:35:53 +02:00
Sheldan
59ff1f1f40
added listener to listen for all reactions removed
2020-05-17 00:40:16 +02:00
Sheldan
db8edb26f0
upgraded to new JDA version and changed some deprecated methods
2020-05-16 23:40:02 +02:00
Sheldan
3bb6620cbe
added a condition to check for the correct feature mode
...
merged mod mail logging back into the mod mail feature and set it up as a mode
2020-05-16 22:40:11 +02:00
Sheldan
b0ab88d143
added setMode to documentation, added error handling with templated exception for set mode and refactored some feature config related methods (changed the equal to be case insensitive)
2020-05-16 21:46:10 +02:00
Sheldan
d2264937b2
added the concept of feature modes, these are the modes in which a feature can operate, its basically a separate way how the feature does it jobs, for example mod mail might log or it might not. bot of these are different modes
...
refactored services for feature flag and feature config
2020-05-16 20:55:13 +02:00
Sheldan
d5007e362b
added support for example templates/direct strings to commands who need it
...
added example templates for some commands
added the examples to documentation as well
2020-05-16 01:20:23 +02:00
Sheldan
ddb540ccfe
added columns for tracking created/updated
2020-05-16 00:21:53 +02:00
Sheldan
82c63d4825
added validation for emotes to features
2020-05-15 20:31:16 +02:00
Sheldan
b984129df6
added check for existing system config when a feature is enabled
2020-05-15 18:53:51 +02:00
Sheldan
f11232de05
moved post targets to an enum, in order to have more type safety, this might be changed in the future
...
added validation check when a feature is enabled, in order to notify which configuration is missing for this feature to function properly
2020-05-15 17:43:39 +02:00
Sheldan
e4efc26740
added templates parameters for help
2020-05-14 18:53:09 +02:00
Sheldan
3f6d980c4c
added template for command not found, when disabling a command in a group
2020-05-14 01:02:31 +02:00
Sheldan
4c826676d0
pulled some more user facing strings into templates
2020-05-14 00:49:57 +02:00
Sheldan
40731157f7
restructured template config layout
...
moved some exception messages from module templates to template config
2020-05-14 00:28:50 +02:00
Sheldan
b591ae497d
added more specific exceptions
2020-05-13 23:46:58 +02:00
Sheldan
cf04687f04
moved some more exceptions to templates
...
made more specific exceptions for certain cases
2020-05-13 23:25:52 +02:00
Sheldan
cb1abaed7d
moved some more templates to template config
...
fixed usage of post target exceptions
2020-05-13 17:45:55 +02:00
Sheldan
80505d1014
migrated some exceptions to use templates
...
fixed missed hard coded value in template
fixed listing of channels in channel groups
fixed template loading
2020-05-13 17:04:21 +02:00
Sheldan
c429aa882b
refactored channel exception to have a unified interface to form the exception message
...
replaced getOne with findById in order to get optionals and handle those
some places still have the general abstracto run time exception
2020-05-13 12:49:08 +02:00
Sheldan
5755d033eb
fixed command and feature mapping
...
added a bunch of java doc to moderation interface
added check in case the text channel on the server was deleted while the mod mail thread was still open
This now returns an error to the user side and prompts to message the bot again in order to create a new mod mail thread
2020-05-12 22:44:44 +02:00
Sheldan
8d8f735672
fixed future handling in message cache, so methods return futures instead of requiring them as parameters
...
and adapted the code using this
fixed config loading still relying on double, where the values were changed to long
2020-05-12 09:32:18 +02:00
Sheldan
1634f5e9cc
fixed link embedding not properly working with sessions
2020-05-12 08:59:08 +02:00
Sheldan
5639ca20b5
added check to not allow two channel groups with the same name
2020-05-12 00:55:45 +02:00
Sheldan
59c449f4d3
added evaluation of the allowed commands when executing help
...
added a note that a few commands are only available within a mod mail thread
2020-05-12 00:45:13 +02:00
Sheldan
6b37b9e8b7
merged the config commands into one command for setting the appropriate value
2020-05-11 15:39:11 +02:00
Sheldan
ba032194ce
added bean configuration for event waiter to be used for paginator
...
fixed initial setup for server
fixed command in a server configuration
2020-05-10 20:29:32 +02:00
Sheldan
860aa0eed7
added ability to configure paginators to be used
...
added paginator for warnings command
2020-05-09 21:31:31 +02:00
Sheldan
aba98ef0c6
fixed jpa annotations for one to many
2020-05-09 16:21:48 +02:00
Sheldan
da8fea34da
replaced a bunch of places where the database loaded objects were referenced across threads, this might have lead to problems when lazy loading them
...
fixed starboard post template
fixed starboard post deletion
2020-05-09 16:15:07 +02:00
Sheldan
8db1cead57
fixed some catch blocks to include all exceptions
...
fixed message sending undo action
2020-05-09 01:32:09 +02:00