matrix-js-snippets
TypeScript icon, indicating that this package has built-in type declarations

0.2.8 • Public • Published

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();

/matrix-js-snippets/

    Package Sidebar

    Install

    npm i matrix-js-snippets

    Weekly Downloads

    39

    Version

    0.2.8

    License

    MIT

    Unpacked Size

    16.6 kB

    Total Files

    7

    Last publish

    Collaborators

    • turt2live
    • turt2live-ci