seed initial setup

This commit is contained in:
Cadence Ember
2023-05-10 23:17:37 +12:00
parent 22dde9faf7
commit 38d7db5071
4 changed files with 57 additions and 2 deletions

View File

@@ -91,6 +91,18 @@ async function sendEvent(roomID, type, content, mxid) {
return root.event_id
}
async function profileSetDisplayname(mxid, displayname) {
await mreq.mreq("PUT", path(`/client/v3/profile/${mxid}/displayname`, mxid), {
displayname
})
}
async function profileSetAvatarUrl(mxid, avatar_url) {
await mreq.mreq("PUT", path(`/client/v3/profile/${mxid}/avatar_url`, mxid), {
avatar_url
})
}
module.exports.path = path
module.exports.register = register
module.exports.createRoom = createRoom
@@ -99,3 +111,5 @@ module.exports.inviteToRoom = inviteToRoom
module.exports.getAllState = getAllState
module.exports.sendState = sendState
module.exports.sendEvent = sendEvent
module.exports.profileSetDisplayname = profileSetDisplayname
module.exports.profileSetAvatarUrl = profileSetAvatarUrl