generated from array-in-a-matrix/matrix-bot-template
Compare commits
3 commits
40800c8f61
...
7dd8b317ae
Author | SHA1 | Date | |
---|---|---|---|
7dd8b317ae | |||
6dbd2e5546 | |||
755fa76dbe |
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -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
|
||||
|
|
|
@ -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
1
examples/node_modules
Symbolic link
|
@ -0,0 +1 @@
|
|||
../src/node_modules
|
1
examples/package.json
Symbolic link
1
examples/package.json
Symbolic link
|
@ -0,0 +1 @@
|
|||
../src/package.json
|
1
examples/pnpm-lock.yaml
Symbolic link
1
examples/pnpm-lock.yaml
Symbolic link
|
@ -0,0 +1 @@
|
|||
../src/pnpm-lock.yaml
|
Loading…
Reference in a new issue