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 BioArt #566

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Add BioArt #566

wants to merge 4 commits into from

Conversation

mgwalker
Copy link
Member

This PR adds a new Charlie listener for bio-art, bio art, or bioart that queries the NIH BioArt API and fetches a random image. The image is then posted to Slack along with the art title and the name of the creator. For example:

image (1)

There is a new OAuth scope required: files.write. I will update Charlie's configuration and the wiki after this PR is approved and before merging it.


Checklist:

  • Code has been formatted with prettier
  • The OAuth wiki
    page has been updated if Charlie needs any new OAuth events or scopes
  • The Environment Variables
    wiki page has been updated if new environment variables were introduced
    or existing ones changed
  • The dev wiki has been updated, e.g.:
  • If appropriate, the NIST 800-218 documentation has been updated

@mgwalker mgwalker requested a review from a team as a code owner November 21, 2024 17:59
const { data } = await axios.get(config.responseUrl);
return data;
},
async () => fetch(config.responseUrl).then((r) => r.json()),

Check warning

Code scanning / CodeQL

File data in outbound network request Medium

Outbound network request depends on
file data
.
@mgwalker mgwalker changed the base branch from main to remove-axios November 21, 2024 18:11
Base automatically changed from remove-axios to main November 21, 2024 19:08
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.

1 participant