19 lines
572 B
JavaScript
19 lines
572 B
JavaScript
const magick = require("../utils/image.js");
|
|
|
|
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();
|
|
const buffer = await magick({
|
|
cmd: "homebrew",
|
|
caption: args.join(" ").toLowerCase().replace(/\n/g, " ")
|
|
});
|
|
return {
|
|
file: buffer,
|
|
name: "homebrew.png"
|
|
};
|
|
};
|
|
|
|
exports.aliases = ["hbc", "brew", "wiibrew"];
|
|
exports.category = 4;
|
|
exports.help = "Creates a Homebrew Channel edit";
|
|
exports.params = "[text]"; |