added the concept of commands in server, to have a separate config for commands within a server

added server config listener, to create such commands
moved the command and feature creation to separate spring listener (they are dependant, a mechanism for dependencies is needed)
added a feature flag to the command table, so we know what the feature of a command is
added ability to restrict commands to certain roles/remove the restriction
added ability to make some roles not affected by a command/remove the immunity, this works by retrieving the first member from the command parameters, and checking if the member has the said role
commands in a server now have a restricted flag to indicate, if the role checks should be in effect (only affects role-to-execute restriction)
fixed initial prefix config
added the immune user check only to commands most likely needing it
This commit is contained in:
Sheldan
2020-04-27 17:32:33 +02:00
parent 05aa0815d6
commit e08086b6a9
59 changed files with 1110 additions and 72 deletions

View File

@@ -22,7 +22,7 @@ public class StarboardPostReaction {
@JoinColumn(name = "reactorId", nullable = false)
private AUser reactor;
@ManyToOne
@OneToOne
@JoinColumn(name = "postId", nullable = false)
private StarboardPost starboardPost;