matrix-js-basic-bot
A basic bot for matrix.org
It can be used to run basic experiments in chat bot development without going deep in matrix protocol details.
Bot is powered by matrix-js-sdk.
Features:
- on first startup authenticates and obtains access token and device id, stores them to use on subsequent runs
- automatically joins rooms on invitation
- automatically leaves empty rooms
- supports e2e encryption
- automatically verifies all users devices in the room on an attempt to send a message to the e2e enabled room
Usage
npm install matrix-js-basic-bot
const BasicMatrixBot = ;const md = ; { try const output = `**Echo**: `; await this; catch error console; } { await servers; const bot = 'myCoolBot' 'StrongPassword' 'https://matrix.org' './localstorage'; bot; bot; bot; await botstart;} ;
See more examples in examples.
API
License
MIT