Skip to content
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 command handler #333

Merged
merged 1 commit into from
Jul 23, 2015
Merged

Slash command handler #333

merged 1 commit into from
Jul 23, 2015

Conversation

warcode
Copy link
Contributor

@warcode warcode commented Jul 23, 2015

Handles all /commands by allowing registered callbacks for commands
First to register takes that command
Any entry starting with / will be intercepted and a message will not be delivered
Format is /command this goes as one big parameter

Updated /me as example

Updated /me as example
@engelgabriel
Copy link
Member

I really REALLY liked it!

engelgabriel added a commit that referenced this pull request Jul 23, 2015
@engelgabriel engelgabriel merged commit 3f34c20 into RocketChat:master Jul 23, 2015
@engelgabriel
Copy link
Member

@warcode I think on the add method, we should allow to pass on a "help" message.. so we can create a /help that will list all /commands

@warcode
Copy link
Contributor Author

warcode commented Jul 23, 2015

@engelgabriel Yes. That is a great idea.

I considered a /help but there either has to be a way to show a message only to the person who typed the command, or have a bot send a direct message which might be confusing to new users.

@engelgabriel
Copy link
Member

Agrees, i think we could even be just a "autocomplete" box... like the mentions.

Peym4n added a commit to redlink-gmbh/Rocket.Chat that referenced this pull request Jun 12, 2018
HappyTobi pushed a commit to HappyTobi/Rocket.Chat that referenced this pull request Jul 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants