Use Cache Server

This commit is contained in:
bingus_violet 2024-06-01 13:45:12 -05:00
parent 134d4e4380
commit 3fe2266e3e
3 changed files with 44 additions and 55 deletions

View file

@ -90,14 +90,7 @@ module.exports = {
function get_img(activity, size = "large_image") {
if (cachedImages[get_img_url(activity, size)]) {
var fn = cachedImages[get_img_url(activity, size)]
var fp = path.join(__dirname, 'cached', fn)
} else {
return '/imgs/notFound.png'
}
return '/cached/' + fn
return "https://cache.violets-purgatory.dev/cached/" + get_img_url(activity, size)
}
function songStats() {