Update index.js
This commit is contained in:
parent
f0b9e7b1ba
commit
c7f9b39745
4
index.js
4
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
|
||||
|
|
Loading…
Reference in a new issue