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

Generic API Fetcher #60

Open
drobati opened this issue Nov 29, 2021 · 0 comments
Open

Generic API Fetcher #60

drobati opened this issue Nov 29, 2021 · 0 comments

Comments

@drobati
Copy link
Owner

drobati commented Nov 29, 2021

Often we right scripts to fetch data from an API and then parse that data and submit it.

Instead I want a command that creates new commands that do this dynamically.

They will have to be approved by the bot owner to be executable.

It should also validate the response is JSON if we support path. Maybe I can extend this to support other content-types later.

Usage

!fetch add <command> <uri> <path>

Example

!fetch add catfact https://catfact.com data.description

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

1 participant