5121512 / scripts /cmds /loadconfig.js
sweet2004's picture
Upload 207 files
23bbc26 verified
Raw History Blame Contribute Delete
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"));
}
};