Download plugins/self.js from Ikygantengbangetanjay/testingba: direct link, hf CLI and curl.
- Browser
- Download file 625 Bytes
-
https://huggingface.co/spaces/Ikygantengbangetanjay/testingba/resolve/main/plugins/self.js
- Command line
-
hf download hf://spaces/Ikygantengbangetanjay/testingba/plugins/self.js
-
curl -L -o self.js https://huggingface.co/spaces/Ikygantengbangetanjay/testingba/resolve/main/plugins/self.js
625 Bytes
| let handler = async (m, { conn, text, usedPrefix, command }) => { | |
| if (command === "self") { | |
| if (opts["self"]) throw "*[ ! ] self has been activated previously*"; | |
| opts["self"] = true; | |
| m.reply("[ ✓ ] self activated successfully"); | |
| } else if (command === "public") { | |
| if (!opts["self"]) throw "*[ ! ] public has been activated previously*"; | |
| opts["self"] = false; | |
| m.reply("[ ✓ ] public activated successfully"); | |
| } | |
| }; | |
| handler.help = ["self", "public"].map((a) => a + " *[options]*"); | |
| handler.tags = ["owner"]; | |
| handler.command = ["self", "public"]; | |
| handler.owner = true; | |
| module.exports = handler; | |