-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Slash commands as events #294
Comments
we do have plugins and handlers for this =) as you can see the /me command on https://github.com/RocketChat/Rocket.Chat/tree/master/packages/rocketchat-me so, unless you want a specific command I'll close this issue, ok? |
As it is now each plugin has to check for /x in a message and handle it from there. What I am proposing is a single system that checks for /x before any real "message" is sent, generating a callback to the registered function for x. This makes it possible to restrict having a command affecting multiple plugins, which might break things. The current system also makes it cumbersome to have a /help listing all the available slash commands, while a single slash command handler would know the registered commands and be able to list them all. |
…Adapt-assistify-toolbar Adapt assistify room types' toolbars
Slash commands such as
should have a built-in handler that lets plugins register for the callbacks.
Returns the parameter(s) entered by the user.
The text was updated successfully, but these errors were encountered: