Download command.js from ravenbs1/mmm: direct link, hf CLI and curl.
- Browser
- Download file 488 Bytes
-
https://huggingface.co/spaces/ravenbs1/mmm/resolve/main/command.js
- Command line
-
hf download hf://spaces/ravenbs1/mmm/command.js
-
curl -L -o command.js https://huggingface.co/spaces/ravenbs1/mmm/resolve/main/command.js
488 Bytes
| var commands = []; | |
| function cmd(info, func) { | |
| var data = info; | |
| data.function = func; | |
| if (!data.dontAddCommandList) data.dontAddCommandList = false; | |
| if (!info.desc) info.desc = ''; | |
| if (!data.fromMe) data.fromMe = false; | |
| if (!info.category) data.category = 'misc'; | |
| if(!info.filename) data.filename = "Not Provided"; | |
| commands.push(data); | |
| return data; | |
| } | |
| module.exports = { | |
| cmd, | |
| AddCommand:cmd, | |
| Function:cmd, | |
| Module:cmd, | |
| commands, | |
| }; | |