def didnt leak any passwords

This commit is contained in:
array-in-a-matrix 2023-12-08 20:44:25 -05:00
parent 4553eb046b
commit 94fe7acffe

View file

@ -2,10 +2,11 @@
# documentation website: https://turt2live.github.io/matrix-bot-sdk/tutorial-bot.html
import ../nimbotsdk
import jsconsole
const homeserverUrl: cstring = "https://matrix.example.xyz"
let auth = newMatrixAuth(homeserverUrl)
let client = auth.passwordLogin("username", "password")
echo("Copy this access token to your bot's config: ", client.accessToken)
console.log("Copy this access token to your bot's config: ", client.accessToken)