-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow Conditional Loading of Modules per Server #43
Comments
Some additional notes - we'll probably need a new messaging utility. Something like
Which queries the server admin and resolves with their response. The user can respond We'll also want an optional |
The setup method should probably be a promise as well; the core bot can key off of a resolve to finish adding the module or a reject to send an error message. At this point, it might be prudent to switch the command files to a class system in a similar fashion to ARX-7 |
Once this is done, we should bump up the version to 1.0 and release it on NPM |
Thinking the following format might be best - maybe rename class Command {
constructor() {
this.name = 'Command';
this.serverWhitelist = [];
this.serverBlacklist = [];
}
setUp() {
return;
}
message() {
return false;
}
helpMessage() {
return;
}
}
module.exports = Command; I made |
As part of this, we need a
|
Actually, it might be worth combining key/value into a single |
I think this might require a few extra database tables; it might be worth reorganizing what we currently have. |
Progress update: Settings and conditional command loading work. I've gotten an initial admin query system up that allows them to set config values, but I still need to add/remove all commands, clear up the messaging a bit, and clear set config values. The permissions system also isn't exposed to the admin yet |
Alright, status update - everything is done except for:
|
Issues found:
|
Done and merged in 8256f76 |
When Aquarius is added to a server, only a select few modules should be enabled automatically. The rest will need to be enabled by the server admin.
As part of the settings, Aquarius should also allow the restriction of modules, perhaps using the following states:
Aquarius Mod
role and server admin can use this moduleFurther, additional configuration values should be allowable (things like API access keys and the like)
The text was updated successfully, but these errors were encountered: