🐛 Improve generation

This commit is contained in:
Kazhnuz 2025-02-12 20:05:55 +01:00
parent 8058e27a3f
commit e1e8426c3c

View file

@ -9,7 +9,7 @@ const position = {x: 4, y: 2, gravity: "NorthEast"}
const metadatas = []
function createFilename(prideflag, text, now = false) {
return `${prideflag.name.en.toLowerCase()}-${text.replace("⋅", "_").replace(" ", "_").replace("\n", '-').toLowerCase()}${now?'-now':''}.png`;
return `${prideflag.name.en.toLowerCase()}-${text.replaceAll("⋅", "_").replaceAll(" ", "_").replaceAll("\n", '-').toLowerCase()}${now?'-now':''}.png`;
}
function createButton(source, x, y, text, gravity) {