matrix-js-snippets

v0.2.8
A small collection of JS snippets for matrix bots
matrix bot helpers snippets modules

matrix-js-snippets

npm version TravisCI badge

A small collection of snippets for repetitive tasks normally performed by matrix bots.

Installing

This package can be found on npm:

npm install matrix-js-snippets

Usage (matrix-js-sdk)

var matrixUtils = require("matrix-js-snippets");
var sdk = require("matrix-js-sdk");

// Create your client
var client = sdk.createClient({ /* your arguments here */ });

// Enable the utiltiies you'd like to use
matrixUtils.autoAcceptInvites(client); // supports optional callback

// Don't forget to actually start the client too!
client.startClient();
npm i matrix-js-snippets

Metadata

  • MIT
  • >= 6.0.0
  • Travis Ralston
  • released 6/7/2018

Downloads