2020-08-28 02:34:12 +00:00
|
|
|
const magick = require("../utils/image.js");
|
2019-12-05 16:58:46 +00:00
|
|
|
|
|
|
|
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-08-28 02:34:12 +00:00
|
|
|
const buffer = await magick({
|
|
|
|
cmd: "homebrew",
|
|
|
|
caption: args.join(" ").toLowerCase().replace(/\n/g, " ")
|
|
|
|
});
|
2020-04-12 19:51:48 +00:00
|
|
|
return {
|
2020-02-19 14:25:45 +00:00
|
|
|
file: buffer,
|
2019-12-05 16:58:46 +00:00
|
|
|
name: "homebrew.png"
|
2020-04-12 19:51:48 +00:00
|
|
|
};
|
2019-12-05 16:58:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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]";
|