Download examples/command_template.js from Sk0lovek/WhatsBot: direct link, hf CLI and curl.
- Browser
- Download file 512 Bytes
-
https://huggingface.co/spaces/Sk0lovek/WhatsBot/resolve/main/examples/command_template.js
- Command line
-
hf download hf://spaces/Sk0lovek/WhatsBot/examples/command_template.js
-
curl -L -o command_template.js https://huggingface.co/spaces/Sk0lovek/WhatsBot/resolve/main/examples/command_template.js
512 Bytes
| //jshint esversion:8 | |
| const execute = async (client, msg /*,args*/) => {}; | |
| module.exports = { | |
| name: "", //name of the module | |
| description: "", // short description of what this command does | |
| command: "", //command with prefix. Ex command: '!test' | |
| commandType: "", // admin|info|plugin | |
| isDependent: true | false, //whether this command is related/dependent to some other command | |
| help: "", // a string descring how to use this command Ex = help : 'To use this command type !test arguments' | |
| execute, | |
| }; | |