botkit-matrix

Name botkit-matrix
Project Type sdk
Description A Botkit connector for Matrix
Author frankgerhardt
Maturity Alpha
Language JavaScript
License Apache
Repo https://github.com/frankgerhardt/botkit-matrix

A Botkit connector for Matrix

Install

$ npm install botkit-matrix

Usage

```JavaScript let config = { ‘baseUrl’: ‘https://matrix.org’, ‘botUserId’: ‘@youruserid:matrix.org’, ‘password’: ‘yourpassword’, ‘localStorage’: ‘filepath’ };

require(‘botkit-matrix’).MatrixController(config) .then((controller) => {

controller.hears(['hi', 'hello'], 'message_received', function (bot, message) {
    bot.reply(message, "Hello, world!");
}); }); ```

You can get a sample bot at botkit-matrix-sample

For more features see Botkit Core

Repository: https://github.com/frankgerhardt/botkit-matrix

How helpful was this page? Click to give a rating