From c7f9b397452557d518d83a4d7b2b45ab92c3e340 Mon Sep 17 00:00:00 2001 From: array-in-a-matrix Date: Mon, 6 Nov 2023 13:58:51 -0500 Subject: [PATCH] Update index.js --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 40e1aba..0933a65 100644 --- a/index.js +++ b/index.js @@ -1,11 +1,11 @@ import config from './config.json' assert {type: "json"}; -import { MatrixClient, SimpleFsStorageProvider, AutojoinRoomsMixin } from "matrix-bot-sdk"; +import { MatrixClient, SimpleFsStorageProvider, AutojoinRoomsMixin, RichRepliesPreprocessor } from "matrix-bot-sdk"; const storage = new SimpleFsStorageProvider("storage.json"); -client.addPreprocessor(new RichRepliesPreprocessor(false)); const client = new MatrixClient(config.homeserver, config.token, storage); AutojoinRoomsMixin.setupOnClient(client); +client.addPreprocessor(new RichRepliesPreprocessor(false)); client.start().then(() => console.log(`Client has started!`)); // ? event listener