matrix-js-snippets
v0.2.8
Published
A small collection of JS snippets for matrix bots
Readme
matrix-js-snippets
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-snippetsUsage (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();