From 729192dfe7a4912b31d475c5e2505bb413d82b80 Mon Sep 17 00:00:00 2001 From: Essem Date: Sun, 15 Mar 2020 18:54:57 -0500 Subject: [PATCH] Forgot to re-add the background color in motivate --- commands/motivate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/motivate.js b/commands/motivate.js index b2a0c09..79bd2e0 100644 --- a/commands/motivate.js +++ b/commands/motivate.js @@ -12,7 +12,7 @@ exports.run = async (message, args) => { const text = `/tmp/${Math.random().toString(36).substring(2, 15)}.png`; const text2 = `/tmp/${Math.random().toString(36).substring(2, 15)}.png`; const buffer = await gm().in("(").in(image.path).coalesce().resize(500, 500).borderColor("black").border(5, 5).out(")").borderColor("white").border(3, 3).bufferPromise("miff", image.delay); - await gm(buffer).coalesce().gravity("Center").extent(600, "%[fx:s.h+50]").writePromise(file); + await gm(buffer).coalesce().background("black").gravity("Center").extent(600, "%[fx:s.h+50]").writePromise(file); const size2 = await gm(file).sizePromise(); await gm().background("black").out("-size", "600").fill("white").font("Times").pointSize(56).gravity("Center").out(`pango:${topText.replace(/&/g, "\\&").replace(/>/g, "\\>").replace(/ { exports.aliases = ["motivational", "motiv", "demotiv", "demotivational", "poster"]; exports.category = 5; -exports.help = "Creates a motivational poster"; \ No newline at end of file +exports.help = "Creates a motivational poster";