atuttle / zoidbox

An IRC bot that (attempts to) bring the knowledge and wit of @boyzoid to ##coldfusion on freenode
3 stars 6 forks source link

Revised Giphy API request to use module and allow user to change rating ... #46

Open coldfumonkeh opened 9 years ago

coldfumonkeh commented 9 years ago

Revised Giphy API request to use module and allow user to change rating flag when making the request - defaults to pg-13 rating.

When a user requests a giphy image the default rating will be pg-13:

giphy:archer

The rating can be manually overridden by providing an optional rating flag like so:

giphy:archer -r
giphy:archer -y

Available flags are:

The request method was also changed in this revision to use the apigiphy Node module to streamline the code.

atuttle commented 9 years ago

Gotta add your new dependency to package.json

coldfumonkeh commented 9 years ago

Thanks, forgot that rather important detail given the new branch changes. Just added in b119d29