Skip to content

Commit e3bcb9d

Browse files
committed
fix instance code
1 parent 3d69408 commit e3bcb9d

File tree

2 files changed

+33
-33
lines changed

2 files changed

+33
-33
lines changed

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ async function updateInstances(): Promise<void> {
118118
const existingInstance = instanceNames.get(instance.name);
119119
if (existingInstance) {
120120
for (const key of Object.keys(instance)) {
121-
if (!existingInstance[key]) {
121+
if (!(key in existingInstance)) {
122122
existingInstance[key] = instance[key];
123123
}
124124
}

src/webpage/instances.json

+32-32
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
[
2-
{
3-
"name": "Spacebar",
4-
"description": "The official Spacebar instance.",
5-
"image": "https://raw.githubusercontent.com/spacebarchat/spacebarchat/master/branding/png/Spacebar__Icon-Discord.png",
6-
"urls":{
7-
"wellknown": "https://spacebar.chat/",
8-
"api": "https://old.server.spacebar.chat/api",
9-
"cdn": "https://cdn.old.server.spacebar.chat",
10-
"gateway": "wss://gateway.old.server.spacebar.chat"
11-
},
12-
"url": "https://spacebar.chat"
13-
},
14-
{
15-
"name": "Fastbar",
16-
"description": "The best Spacebar instance with 95% uptime, running under on a NVME drive running with bleeding edge stuff <3",
17-
"image": "https://spacebar.greysilly7.xyz/logo.png",
18-
"url": "https://greysilly7.xyz",
19-
"language": "en",
20-
"country": "US",
21-
"display": true,
22-
"urls": {
23-
"wellknown": "https://greysilly7.xyz",
24-
"api": "https://api-spacebar.greysilly7.xyz/api",
25-
"cdn": "https://cdn-spacebar.greysilly7.xyz",
26-
"gateway": "wss://gateway-spacebar.greysilly7.xyz"
27-
},
28-
"contactInfo": {
29-
"dicord": "greysilly7",
30-
"github": "https://github.com/greysilly7",
31-
"email": "[email protected]"
32-
}
33-
}
2+
{
3+
"name": "Spacebar",
4+
"description": "The official Spacebar instance.",
5+
"image": "https://raw.githubusercontent.com/spacebarchat/spacebarchat/master/branding/png/Spacebar__Icon-Discord.png",
6+
"urls": {
7+
"wellknown": "https://spacebar.chat/",
8+
"api": "https://old.server.spacebar.chat/api",
9+
"cdn": "https://cdn.old.server.spacebar.chat",
10+
"gateway": "wss://gateway.old.server.spacebar.chat"
11+
},
12+
"url": "https://spacebar.chat"
13+
},
14+
{
15+
"name": "Fastbar",
16+
"description": "The best Spacebar instance with 95% uptime, running under on a NVME drive running with bleeding edge stuff <3",
17+
"image": "https://spacebar.greysilly7.xyz/logo.png",
18+
"url": "https://greysilly7.xyz",
19+
"language": "en",
20+
"country": "US",
21+
"display": true,
22+
"urls": {
23+
"wellknown": "https://greysilly7.xyz",
24+
"api": "https://api-spacebar.greysilly7.xyz/api",
25+
"cdn": "https://cdn-spacebar.greysilly7.xyz",
26+
"gateway": "wss://gateway-spacebar.greysilly7.xyz"
27+
},
28+
"contactInfo": {
29+
"dicord": "greysilly7",
30+
"github": "https://github.com/greysilly7",
31+
"email": "[email protected]"
32+
}
33+
}
3434
]

0 commit comments

Comments
 (0)