-
Notifications
You must be signed in to change notification settings - Fork 983
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
API: scopes for commands #1546
Comments
Hi @alwx when you are already working on this, there is one thing I need to share. The current way how commands are loaded in Status is very poor - when any command function taking message params (validator, preview, shortPreview) is registered through API, Status app loads them from Jail.VM not as a functions ready to be applied to message params, but already as results of function application to message params (which is happening in Jail.VM i guess). What I propose is to not fetch command results from jail and only use them as needed in Status (for example preview function will be used by subscription for messages ready to be rendered). |
@flexsurfer @alwx How come this is in 0.9.13 milestone? Hasn't this been fixed for 0.9.12 and can thus be closed? If there are enhancements I suggests these are captured in additional issues. |
Some commands should be available only for group chats, some — only for 1-to-1 chats. Some commands can be used when all participants in group chat are bots, and others cannot.
We can solve all these issues by introducing visibility scopes.
More importantly — there should be an ability to define two commands with the same name and different visibility scopes. This improvement will allow us to remove some parameters like
registeredOnly
, get rid of some hardcoded parts and also improve /send and /request commands (for instance, get rid of contact chooser in 1-to-1 chats).The text was updated successfully, but these errors were encountered: