Refactor
This commit is contained in:
parent
c54663297c
commit
9a4fa5593a
2
main.ts
2
main.ts
|
@ -21,8 +21,8 @@ const {
|
||||||
// will work fine for this example.
|
// will work fine for this example.
|
||||||
const storage = new SimpleFsStorageProvider(storageLocation);
|
const storage = new SimpleFsStorageProvider(storageLocation);
|
||||||
const cryptoProvider = new RustSdkCryptoStorageProvider(cryptoFolderLocation);
|
const cryptoProvider = new RustSdkCryptoStorageProvider(cryptoFolderLocation);
|
||||||
|
|
||||||
const client = new MatrixClient(homeserverUrl, accessToken, storage, cryptoProvider);
|
const client = new MatrixClient(homeserverUrl, accessToken, storage, cryptoProvider);
|
||||||
|
|
||||||
AutojoinRoomsMixin.setupOnClient(client);
|
AutojoinRoomsMixin.setupOnClient(client);
|
||||||
|
|
||||||
// Before we start the bot, register our command handler
|
// Before we start the bot, register our command handler
|
||||||
|
|
Loading…
Reference in a new issue