generated from array-in-a-matrix/matrix-bot-template
def didnt leak any passwords
This commit is contained in:
parent
4553eb046b
commit
94fe7acffe
|
@ -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)
|
Loading…
Reference in a new issue