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
stephen da3390bc89
Creating files for prosidy, and openfire
#20
Moved ejabberd to it's own file as well.
2022-06-02 21:48:12 -04:00

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
}
}
}
}