No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Add config for Stale app Nov 1, 2018
schema good enough for v1 May 27, 2018
test initial working plugin May 27, 2018
.gitignore initial working plugin May 27, 2018
README.md Update README.md Jun 12, 2018
index.js consistent spliting of search phrase May 28, 2018
package-lock.json 1.0.4 May 28, 2018
package.json 1.0.4 May 28, 2018

README.md

ssb-meme

Uses flumeview-search to build an index of all images names.

Example Usage

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) => {
  // ...
})

API

sbot.meme.search(query, callback)

  • query must be a string at least 3 characters long
  • callback 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