🐛 Improve generation
This commit is contained in:
parent
8058e27a3f
commit
e1e8426c3c
1 changed files with 1 additions and 1 deletions
2
main.js
2
main.js
|
@ -9,7 +9,7 @@ const position = {x: 4, y: 2, gravity: "NorthEast"}
|
||||||
const metadatas = []
|
const metadatas = []
|
||||||
|
|
||||||
function createFilename(prideflag, text, now = false) {
|
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) {
|
function createButton(source, x, y, text, gravity) {
|
||||||
|
|
Loading…
Reference in a new issue