Uses flumeview-search to build an index of all images names.
var Scuttlebot = require('scuttlebot')
Scuttlebot
.use(require('scuttlebot/plugins/master'))
.use(require('ssb-meme'))
var sbot = Scuttlebot(config) // see test/index.js for details
sbot.meme.search('hermes', (err, results) => {
// ...
})
sbot.meme.search(query, callback)
query
must be a string at least 3 characters longcallback
recieves results as an object of form: {
'&234x234lass...': [
{ name: 'hermes-spade', author:'@ye+4...', msg: '%q24dad323...' }
{ name: 'hermes-wacka', author:'@mox5...', msg: '%asdasd696...' }
//...
]
//...
}
msg is the message where this mention occured
sbot.meme.query
this is the raw method provided by flumeview-search. Not recommended for general use