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

Please provide "Hello World" Example at minimum #1

Open
thebeline opened this issue Oct 18, 2016 · 1 comment
Open

Please provide "Hello World" Example at minimum #1

thebeline opened this issue Oct 18, 2016 · 1 comment

Comments

@thebeline
Copy link

The repository states that there is documentation in the src, and, alas, there is little to be found. Can you please provide a Hello World example so that I can get up and running with this easily?

Proposal:
Show us how we can capture /hw and return Hello World.

Thank you!

@wpears
Copy link
Contributor

wpears commented Nov 4, 2016

Hey apologies for the delay on this

Within mattermost, configure a slash command (settings -> integrations -> slash commands -> Add Slash Command) to POST to <your bot server>/hubot/command and set whatever trigger word you like (I use the trigger word bot). Any command that your bot understands can now be triggered with /bot <that command>

As a test, try to run /bot ping and your bot will respond with PONG using whatever response username and icon you set when configuring the slash command.

Hope that helps, let me know.

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

No branches or pull requests

2 participants