example conf, change domain

This commit is contained in:
biglyderv 2024-09-18 18:11:08 -04:00
parent b3be02c15c
commit bbc7bb6033
No known key found for this signature in database
GPG key ID: 33AC87E9ACE66954
2 changed files with 31 additions and 4 deletions

View file

@ -39,7 +39,7 @@ async function main(type) {
user = user.slice(1);
if (typed == '#') {
studios[user] = await (fetch(`https://hf.zenoverse.net/studio/${user}`)
studios[user] = await (fetch(`https://feed.zenoverse.net/studio/${user}`)
.then(x => x.json()));
}
}
@ -57,20 +57,20 @@ async function main(type) {
let extraFetch = [];
if (typed == '#' && type == '#user') {
extraFetch = await (fetch(`https://hf.zenoverse.net/studio_project/${user}`)
extraFetch = await (fetch(`https://feed.zenoverse.net/studio_project/${user}`)
.then(x => x.json()));
extraFetch.forEach(x => {
x.studio = studios[user ].title;
});
} else if (typed == '#' && type == '#comment') {
extraFetch = await (fetch(`https://hf.zenoverse.net/studio_comment/${user}`)
extraFetch = await (fetch(`https://feed.zenoverse.net/studio_comment/${user}`)
.then(x => x.json()));
extraFetch.forEach(x => {
x.studio = studios[user].title;
x.studioID = user
});
} else if (typed == '@' && type == '#user') {
extraFetch = await (fetch(`https://hf.zenoverse.net/user/${user}`)
extraFetch = await (fetch(`https://feed.zenoverse.net/user/${user}`)
.then(x => x.json()));
extraFetch.forEach(x => x.username = user);
}