Download scripts/cmds/loadconfig.js from sweet2004/bot: direct link, hf CLI and curl.
- Browser
- Download file 783 Bytes
-
https://huggingface.co/spaces/sweet2004/bot/resolve/main/scripts/cmds/loadconfig.js
- Command line
-
hf download hf://spaces/sweet2004/bot/scripts/cmds/loadconfig.js
-
curl -L -o loadconfig.js https://huggingface.co/spaces/sweet2004/bot/resolve/main/scripts/cmds/loadconfig.js
783 Bytes
| const fs = require("fs-extra"); | |
| module.exports = { | |
| config: { | |
| name: "loadconfig", | |
| aliases: ["loadcf"], | |
| version: "1.3", | |
| author: "NTKhang", | |
| countDown: 5, | |
| role: 2, | |
| shortDescription: { | |
| vi: "Load lại config", | |
| en: "Reload config" | |
| }, | |
| longDescription: { | |
| vi: "Load lại config của bot", | |
| en: "Reload config of bot" | |
| }, | |
| category: "owner", | |
| guide: "{pn}" | |
| }, | |
| langs: { | |
| vi: { | |
| success: "Config đã được load lại thành công" | |
| }, | |
| en: { | |
| success: "Config has been reloaded successfully" | |
| } | |
| }, | |
| onStart: async function ({ message, getLang }) { | |
| global.GoatBot.config = fs.readJsonSync(global.client.dirConfig); | |
| global.GoatBot.configCommands = fs.readJsonSync(global.client.dirConfigCommands); | |
| message.reply(getLang("success")); | |
| } | |
| }; |