mirror of
https://gitdab.com/cadence/out-of-your-element.git
synced 2025-09-11 04:33:02 +02:00
Remove hardcoded cadence.moe
This commit is contained in:
parent
dbbb8281e6
commit
734c9a5838
3 changed files with 11 additions and 7 deletions
|
@ -24,8 +24,11 @@ function writeRegistration(reg) {
|
|||
fs.writeFileSync(registrationFilePath, JSON.stringify(reg, null, 2))
|
||||
}
|
||||
|
||||
/** @returns {import("../types").InitialAppServiceRegistrationConfig} reg */
|
||||
function getTemplateRegistration() {
|
||||
/**
|
||||
* @param {string} serverName
|
||||
* @returns {import("../types").InitialAppServiceRegistrationConfig} reg
|
||||
*/
|
||||
function getTemplateRegistration(serverName) {
|
||||
return {
|
||||
id: "ooye",
|
||||
as_token: crypto.randomBytes(32).toString("hex"),
|
||||
|
@ -33,11 +36,11 @@ function getTemplateRegistration() {
|
|||
namespaces: {
|
||||
users: [{
|
||||
exclusive: true,
|
||||
regex: "@_ooye_.*:cadence.moe"
|
||||
regex: `@_ooye_.*:${serverName}`
|
||||
}],
|
||||
aliases: [{
|
||||
exclusive: true,
|
||||
regex: "#_ooye_.*:cadence.moe"
|
||||
regex: `#_ooye_.*:${serverName}`
|
||||
}]
|
||||
},
|
||||
protocols: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue