text: // Copyright (©) 2020-2021 Shin#0484. All rights reserved. MIT License.
  
  const request = require("request");
  const gm = require("@tohru/gm").subClass({
    imageMagick: true
  });
  
  exports.run = async (client, message, args) => { // eslint-disable-line no-unused-vars
    const image = await client.getImage(message).catch(error => {
      message.reply("You need to provide an image to add a DeviantArt watermark!");
      console.log(error);
    });
    if (image !== undefined) {
      message.channel.startTyping();
      const deviantartWatermark = "./assets/images/deviantartwatermark.png";
      gm(request(image)).size((error, size) => {
        if (error) throw new Error(error);
        gm(request(image)).composite(deviantartWatermark).gravity("Center").resize(null, size.height).strip().stream((error, stdout) => {
          if (error) throw new Error(error);
          message.channel.stopTyping();
          message.channel.send({
            files: [{
              attachment: stdout,
              name: "deviantart.png"
            }]
          });
        });
      });
    }
  };
  
  exports.aliases = ["da", "deviant"];
  