feat: re-merge (#2)

Reviewed-on: https://codeberg.org/nhcarrigan/tingle-bot/pulls/2
Co-authored-by: Naomi Carrigan <commits@nhcarrigan.com>
Co-committed-by: Naomi Carrigan <commits@nhcarrigan.com>
This commit is contained in:
2024-12-21 00:11:48 +00:00
committed by Naomi the Technomancer
parent 0afbb5aeb7
commit dac4c6f008
9 changed files with 448 additions and 28 deletions

View File

@ -26,9 +26,17 @@ export const generateBanner = async(
? "Blight Rain"
: forecast.precipitation?.name;
const overlayPath = getOverlayImage(overlayQuery ?? null);
if (overlayQuery === undefined) {
return background;
}
const overlay = await overlayImages(background.filePath, overlayPath ?? "");
const overlayPath = getOverlayImage(overlayQuery);
if (overlayPath === null) {
return background;
}
const overlay = await overlayImages(background.filePath, overlayPath);
return overlay;
};