generated from array-in-a-matrix/matrix-bot-template
Nim wrapper for the Matrix bot SDK.
.vscode | ||
examples | ||
nimbotsdk | ||
.gitignore | ||
LICENSE | ||
nimbotsdk.nim | ||
package.json | ||
pnpm-lock.yaml | ||
README.md |
Nim Bot SDK
Nim wrapper for the Matrix bot SDK.
Setup
Run pnpm add matrix-bot-sdk
after cloning template.
Usage
To import the entire library, your Nim program only needs to import the nimbotsdk.nim
from the root of the repository. To import a specific module you need to import matrixTypes.nim
and the needed module(s) from nimbotsdk/
.
There are code examples inside the examples/
directory.
Development
Nim files inside nimbotsdk/
are named after the file they wrap (MatrixAuth.nim
is a wrapper to MatrixAuth.d.ts
). matrixTypes.nim
defines the object types used throughout the entire library.
Procedures that have been tested to work are imported into nimbotsdk.nim
in the root of the project.