You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The cat api allows for searching cats by breed, file type, category, amongst some other options. These can be seen on the left side of this site: https://docs.thecatapi.com/
A useful extension/change to the cat command (found in src/Tablebot/Plugins/Cats.hs) would allow a user to optionally filter for cats.
Example usages may be $cat breed bengal, $cat type gif, or $cat breed Abyssinian type gif. Exact syntax is up to you.
The three types of image are known ahead of time, so as long as the user correctly selects one of the three the command should work. The type is then added to the search query.
To search for pictures of a particular breed of cat, the program first needs to request the breeds and the ids associated with each, and then locate the id of the breed requested, which can then be added to the search query.
Multiple search options can be combined in the API, but it may be worth implementing basic forms that only work with one type of search query.
Additional options for syntax:
$cat breed:"American Curl" type:"png"
$cat -b Bengal -t gif
The text was updated successfully, but these errors were encountered:
The cat api allows for searching cats by breed, file type, category, amongst some other options. These can be seen on the left side of this site: https://docs.thecatapi.com/
A useful extension/change to the
cat
command (found in src/Tablebot/Plugins/Cats.hs) would allow a user to optionally filter for cats.Example usages may be
$cat breed bengal
,$cat type gif
, or$cat breed Abyssinian type gif
. Exact syntax is up to you.The three types of image are known ahead of time, so as long as the user correctly selects one of the three the command should work. The type is then added to the search query.
To search for pictures of a particular breed of cat, the program first needs to request the breeds and the ids associated with each, and then locate the id of the breed requested, which can then be added to the search query.
Multiple search options can be combined in the API, but it may be worth implementing basic forms that only work with one type of search query.
Additional options for syntax:
$cat breed:"American Curl" type:"png"
$cat -b Bengal -t gif
The text was updated successfully, but these errors were encountered: