A hubot script to recognize images; powered by Clarifai. This is a re-write of hubot-recognizer to work with the new Clarifai API.
-
Register on Clarifai for an API key if you don't have one. They're free.
-
Export your API key as an environment variable:
export CLIENT_ID=HugeCR4zyV4luesTh3yW1!!g1veU
- In your hubot project folder, install the node module:
# Using yarn
yarn add hubot-clarifai
# Or with npm
npm install --save https://github.com/gfax/hubot-clarifai.git
- Then add hubot-clarifai to your
external-scripts.json
:
[
"hubot-clarifai"
]
hubot what is [image url]
hubot what is this [image url]
You can load up the hubot CLI adapter by running npm start
.
This will load the script automatically where you can trigger a response from it.
Also you can run npm run test
to run eslint.