Name
smallbot-matrix
Description
Small Matrix Little Bot
Author
cybertim
Maturity
No longer maintained
Language
TypeScript
License
MIT
Matrix Room
Small Matrix Little Bot
Very small implementation (bare essential) to quickly setup a Matrix Bot in Deno/Typescript/Web.
const client = new SmallBot({
accessToken: "mysecretaccesstoken",
homeserverUrl: "https://matrix.org/",
eventHandler: async (client, roomId, event) => {
if (event.sender !== client.ownUserId) {
await client.sendRoomNotice(roomId, "You said: <b>" + event.content.body + "</b>");
}
}
});
await client.start();
You can find this modules on deno.land https://deno.land/x/smallbot_matrix