Skip to content

Instantly share code, notes, and snippets.

@morganwilde
Created April 17, 2020 22:25
Show Gist options
  • Save morganwilde/38d50a3aae714ec880f20b6d7f23f91c to your computer and use it in GitHub Desktop.
Save morganwilde/38d50a3aae714ec880f20b6d7f23f91c to your computer and use it in GitHub Desktop.

Assignment

Create a Slack bot that allows to interact with dog.ceo/dog-api.

The bot should join the #dogs channel and listen for the following commands.

hey bot, show great dane
hey bot, show random
hey bot, find hound

First 2 commands should display an image of a dog of a specific (random) breed. Second command should list up to 10 breeds that match the query. Search algo is up to you to choose.

user:
hey bot, find hound

bot:
afghan hound
basset hound
blood hound
english hound
ibizan hound
plott hound
walker hound

Reference

The resources required to complete the assignment are listed below. Big part of assignments like these is to test your ability to navigate API documentation.

Slack

Invitation to join my Slack workspace https://join.slack.com/t/wildework/shared_invite/zt-dtqhnfld-NnvUm2_ncFCl7wVWS_FGvw.

Documentation: https://api.slack.com/start

Dog API

Documentation: https://dog.ceo/dog-api/documentation/

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