mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-19 21:40:51 +02:00
Make charcoal look better
This commit is contained in:
@@ -36,7 +36,7 @@ module.exports = class CharcoalCommand extends Command {
|
|||||||
try {
|
try {
|
||||||
const { body } = await request.get(image);
|
const { body } = await request.get(image);
|
||||||
const magik = gm(body);
|
const magik = gm(body);
|
||||||
magik.charcoal(5);
|
magik.charcoal(1);
|
||||||
magik.setFormat('png');
|
magik.setFormat('png');
|
||||||
const attachment = await this.toBuffer(magik);
|
const attachment = await this.toBuffer(magik);
|
||||||
if (Buffer.byteLength(attachment) > 8e+6) return msg.reply('Resulting image was above 8 MB.');
|
if (Buffer.byteLength(attachment) > 8e+6) return msg.reply('Resulting image was above 8 MB.');
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "119.7.0",
|
"version": "119.7.1",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user