fix instance code
This commit is contained in:
parent
3d694088bd
commit
e3bcb9dd67
2 changed files with 33 additions and 33 deletions
|
@ -118,7 +118,7 @@ async function updateInstances(): Promise<void> {
|
||||||
const existingInstance = instanceNames.get(instance.name);
|
const existingInstance = instanceNames.get(instance.name);
|
||||||
if (existingInstance) {
|
if (existingInstance) {
|
||||||
for (const key of Object.keys(instance)) {
|
for (const key of Object.keys(instance)) {
|
||||||
if (!existingInstance[key]) {
|
if (!(key in existingInstance)) {
|
||||||
existingInstance[key] = instance[key];
|
existingInstance[key] = instance[key];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,34 @@
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"name": "Spacebar",
|
"name": "Spacebar",
|
||||||
"description": "The official Spacebar instance.",
|
"description": "The official Spacebar instance.",
|
||||||
"image": "https://raw.githubusercontent.com/spacebarchat/spacebarchat/master/branding/png/Spacebar__Icon-Discord.png",
|
"image": "https://raw.githubusercontent.com/spacebarchat/spacebarchat/master/branding/png/Spacebar__Icon-Discord.png",
|
||||||
"urls":{
|
"urls": {
|
||||||
"wellknown": "https://spacebar.chat/",
|
"wellknown": "https://spacebar.chat/",
|
||||||
"api": "https://old.server.spacebar.chat/api",
|
"api": "https://old.server.spacebar.chat/api",
|
||||||
"cdn": "https://cdn.old.server.spacebar.chat",
|
"cdn": "https://cdn.old.server.spacebar.chat",
|
||||||
"gateway": "wss://gateway.old.server.spacebar.chat"
|
"gateway": "wss://gateway.old.server.spacebar.chat"
|
||||||
},
|
},
|
||||||
"url": "https://spacebar.chat"
|
"url": "https://spacebar.chat"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Fastbar",
|
"name": "Fastbar",
|
||||||
"description": "The best Spacebar instance with 95% uptime, running under on a NVME drive running with bleeding edge stuff <3",
|
"description": "The best Spacebar instance with 95% uptime, running under on a NVME drive running with bleeding edge stuff <3",
|
||||||
"image": "https://spacebar.greysilly7.xyz/logo.png",
|
"image": "https://spacebar.greysilly7.xyz/logo.png",
|
||||||
"url": "https://greysilly7.xyz",
|
"url": "https://greysilly7.xyz",
|
||||||
"language": "en",
|
"language": "en",
|
||||||
"country": "US",
|
"country": "US",
|
||||||
"display": true,
|
"display": true,
|
||||||
"urls": {
|
"urls": {
|
||||||
"wellknown": "https://greysilly7.xyz",
|
"wellknown": "https://greysilly7.xyz",
|
||||||
"api": "https://api-spacebar.greysilly7.xyz/api",
|
"api": "https://api-spacebar.greysilly7.xyz/api",
|
||||||
"cdn": "https://cdn-spacebar.greysilly7.xyz",
|
"cdn": "https://cdn-spacebar.greysilly7.xyz",
|
||||||
"gateway": "wss://gateway-spacebar.greysilly7.xyz"
|
"gateway": "wss://gateway-spacebar.greysilly7.xyz"
|
||||||
},
|
},
|
||||||
"contactInfo": {
|
"contactInfo": {
|
||||||
"dicord": "greysilly7",
|
"dicord": "greysilly7",
|
||||||
"github": "https://github.com/greysilly7",
|
"github": "https://github.com/greysilly7",
|
||||||
"email": "greysilly7@gmail.com"
|
"email": "greysilly7@gmail.com"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue