diff --git a/src/modules/utsuholights.js b/src/modules/utsuholights.js index 9993e7d..33ba5cb 100644 --- a/src/modules/utsuholights.js +++ b/src/modules/utsuholights.js @@ -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);