botkit-matrix

1.0.1 • Public • Published

botkit-matrix

A Botkit connector for Matrix

Install

$ npm install botkit-matrix

Usage

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

Authors

License

This project is licensed under Apache License 2.0 - see the LICENSE.md for details

Readme

Keywords

Package Sidebar

Install

npm i botkit-matrix

Weekly Downloads

1

Version

1.0.1

License

Apache-2.0

Unpacked Size

24 kB

Total Files

6

Last publish

Collaborators

  • frankgerhardt