This commit is contained in:
Cynthia Foxwell 2022-05-26 21:44:06 -06:00
parent a511f79c5f
commit 24bc79da43
1 changed files with 17 additions and 0 deletions

View File

@ -48,3 +48,20 @@ utsuholights.callback = async function (msg, line, hex, bri) {
}
};
hf.registerCommand(utsuholights);
const plant = new Command("plant");
plant.category = CATEGORY;
plant.helpText = "Plant cam";
plant.callback = async function () {
try {
const image = Buffer.from(
await fetch("https://nuclear.utsuho.rocks/plant/").then((res) =>
res.arrayBuffer()
)
);
return {file: {file: image, name: "plant.jpg"}};
} catch (err) {
return "<:trollhollow:851301241417498704> where plant (Encountered an error getting plant cam)";
}
};
hf.registerCommand(plant);