mirror of
https://github.com/stronk-dev/RandomChad.git
synced 2025-07-05 10:35:08 +02:00
Print description to console
This commit is contained in:
parent
de5eceac98
commit
fac9afa4a5
@ -70,12 +70,12 @@ async function generateRocketeer(id) {
|
|||||||
|
|
||||||
// Generate, compile and upload image
|
// Generate, compile and upload image
|
||||||
const { NODE_ENV: mode } = process.env;
|
const { NODE_ENV: mode } = process.env;
|
||||||
let path;
|
let path = "./output/" + id;
|
||||||
if (mode == "production") {
|
// if (mode == "production") {
|
||||||
path = "/var/www/avatars/" + id;
|
// path = "/var/www/avatars/" + id;
|
||||||
} else {
|
// } else {
|
||||||
path = "./output/" + id;
|
// path = "./output/" + id;
|
||||||
}
|
// }
|
||||||
rocketeer.image = await svgFromAttributes(rocketeer.attributes, path);
|
rocketeer.image = await svgFromAttributes(rocketeer.attributes, path);
|
||||||
|
|
||||||
// Namify the attributes
|
// Namify the attributes
|
||||||
@ -87,7 +87,7 @@ async function generateRocketeer(id) {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
return rocketeer.name + ": `" + "' @ " + rocketeer.image;
|
return rocketeer.name + ": `" + rocketeer.description + "' @ " + rocketeer.image;
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user