mrmBot-Matrix/commands/homebrew.js

17 lines
601 B
JavaScript
Raw Normal View History

2020-07-21 14:03:08 +00:00
const magick = require("../build/Release/image.node");
const { promisify } = require("util");
exports.run = async (message, args) => {
if (args.length === 0) return `${message.author.mention}, you need to provide some text to make a Homebrew Channel edit!`;
message.channel.sendTyping();
2020-07-21 14:03:08 +00:00
const buffer = await promisify(magick.homebrew)(args.join(" ").toLowerCase().replace(/\n/g, " "));
return {
file: buffer,
name: "homebrew.png"
};
};
exports.aliases = ["hbc", "brew", "wiibrew"];
exports.category = 4;
2019-12-06 00:15:28 +00:00
exports.help = "Creates a Homebrew Channel edit";
exports.params = "[text]";