Handle API errors more gracefully, fixed sharpen, restrict screenshot to the bot owner
This commit is contained in:
parent
9c496a4984
commit
78ae47dbbb
4 changed files with 20 additions and 6 deletions
|
@ -5,7 +5,7 @@ exports.run = async (message) => {
|
|||
const image = await require("../utils/imagedetect.js")(message);
|
||||
if (image === undefined) return `${message.author.mention}, you need to provide an image to sharpen!`;
|
||||
const { buffer, type } = await magick.run({
|
||||
cmd: "sharpen",
|
||||
cmd: "blur",
|
||||
path: image.path,
|
||||
sharp: true
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue