Skip to content

Slash command handler#333

Merged
engelgabriel merged 1 commit intoRocketChat:masterfrom
warcode:feature/slashcommands
Jul 23, 2015
Merged

Slash command handler#333
engelgabriel merged 1 commit intoRocketChat:masterfrom
warcode:feature/slashcommands

Conversation

@warcode
Copy link

@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
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

Comments