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

Example of adding a command #5

Closed
nimonimonimo opened this issue Mar 12, 2017 · 3 comments
Closed

Example of adding a command #5

nimonimonimo opened this issue Mar 12, 2017 · 3 comments

Comments

@nimonimonimo
Copy link

Hi,

Is there any chance you could show how to implement a custom command. I have tried to follow the documentation but as soon as I start to place command files in my own bundle and adds them to services.yml applications just dies.

Adding the provided /help-command works though. Now I just want to find a way to add a let's say /test-command that replies with "Hello world" I have the file but I can't manage to figure out how to reference in right without errors.

If you could give an example of this it would be very helpful.

@BoShurik
Copy link
Owner

What kind of errors did you get?

Here is example https://gist.github.com/BoShurik/05b609c248d77150af39f0620c8f4b4e

@BoShurik
Copy link
Owner

Here is an example project
https://github.com/BoShurik/telegram-bot-example

@nimonimonimo
Copy link
Author

Thankyou very much!

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