forked from vxmppb/vxmppb
30 lines
808 B
JavaScript
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
|
|
}
|
|
}
|
|
}
|
|
} |