Compare commits

...

3 commits

Author SHA1 Message Date
array-in-a-matrix 7dd8b317ae example using crypto 2024-02-15 12:09:10 -05:00
array-in-a-matrix 6dbd2e5546 sys linked 2024-02-15 11:45:07 -05:00
array-in-a-matrix 755fa76dbe fixed path 2024-02-15 11:44:51 -05:00
5 changed files with 11 additions and 3 deletions

4
.gitignore vendored
View file

@ -140,8 +140,10 @@ config.json
# matrix bot storage
storage.json
cryptoStorage
# compiled nim output
*.js
tests/credentials.nim
# ignore test account info
tests/credentials.nim

View file

@ -1,10 +1,13 @@
import ../nimbotsdk/[matrixTypes, MatrixClient, AutojoinRoomsMixin]
import ../src/nimbotsdk/[matrixTypes, MatrixClient, AutojoinRoomsMixin, SimpleFsStorageProvider, RustSdkCryptoStorageProvider]
const
homeserver: cstring = "https://matrix.example.xyz"
token: cstring = "token"
let client = newMatrixClient(homeserver, token)
let storage = newSimpleFsStorageProvider("storeage.json")
let cryptoStorage = newRustSdkCryptoStorageProvider("./cryptoStorage/")
let client = newMatrixClient(homeserver, token, storage, cryptoStorage)
AutojoinRoomsMixinSetupOnClient(client)

1
examples/node_modules Symbolic link
View file

@ -0,0 +1 @@
../src/node_modules

1
examples/package.json Symbolic link
View file

@ -0,0 +1 @@
../src/package.json

1
examples/pnpm-lock.yaml Symbolic link
View file

@ -0,0 +1 @@
../src/pnpm-lock.yaml