From f0c9dd8c6d96de42a5c72064485ac2198de95df3 Mon Sep 17 00:00:00 2001 From: TheEssem Date: Fri, 28 Feb 2020 11:34:55 -0600 Subject: [PATCH] Fixed layers issue with sonic --- commands/sonic.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/sonic.js b/commands/sonic.js index 1ae5871..743a6c8 100644 --- a/commands/sonic.js +++ b/commands/sonic.js @@ -10,7 +10,7 @@ exports.run = async (message, args) => { const file = `/tmp/${Math.random().toString(36).substring(2, 15)}.png`; const cleanedMessage = args.join(" ").replace(/&/g, "\\&").replace(/>/g, "\\>").replace(/${wrap(cleanedMessage, {width: 15, indent: ""})}`).writePromise(file); - const buffer = await gm(template).composite(file).gravity("Center").geometry("474x332+160+10").bufferPromise("png"); + const buffer = await gm(template).composite(file).gravity("Center").geometry("474x332+160+10").bufferPromise("png", "sonic"); return message.channel.createMessage("", { file: buffer, name: "sonic.png"