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

Add a new http status code plugin #64

Open
spolti opened this issue Dec 29, 2020 · 2 comments
Open

Add a new http status code plugin #64

spolti opened this issue Dec 29, 2020 · 2 comments

Comments

@spolti
Copy link
Member

spolti commented Dec 29, 2020

Describe the enhancement
The http status code plugin will return the description of the given status code

Desired state

/http 404
Bot answers:

404 - Not Found

Plus, the plugin will answer all code from a group, eg:

All codes from 2xx group.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Status

@Kaitou786
Copy link

This is can be nice to have, do you some doc or something on where I can start looking if I want to implement this :)

@spolti
Copy link
Member Author

spolti commented Jan 28, 2021

The docs on how implementing things are described on the https://github.com/rebase-it/rebot/tree/master/rebot-telegram-api/rebot-telegram-api-spi README's.

Ignore the META-INF/services file, it isnot needed anymore. need to remove that from its readme :)

all you need to do is create a new module under plugins and implement the CommandProvider interface.
Examples can be found here: https://github.com/rebase-it/rebot/tree/master/rebot-plugins

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants