This repository has been archived on 2023-11-11. You can view files and clone it, but cannot push or open issues or pull requests.
vxmppb/servers/prosidy.js

30 lines
808 B
JavaScript

const createRoom = {
method: 'GET',
url: xmpp_api_url + '/muc/config?jid=' + user_jid,
headers: {
'Content-Type': 'application/json',
Authorization: xmpp_auth
},
body: {
name: xmpp_muc_name,
service: xmpp_muc_server,
host: bot_hostname,
options: {
affliations: [
{
affliation: "member",
jid: config.friends,
}
],
config: {
description: "",
members_only: true,
moderated: true,
name: xmpp_muc_name,
persistent: false,
subject: "Secure channel generated by https://vxmppb.tk",
public: false
}
}
}
}