plant
This commit is contained in:
parent
a511f79c5f
commit
24bc79da43
1 changed files with 17 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue