mirror of
https://code.chipmunk.land/Parker2991/NitoriBot/
synced 2026-12-05 16:45:44 -05:00
31 lines
746 B
JavaScript
31 lines
746 B
JavaScript
module.exports = {
|
|
name: 'reload',
|
|
trustLevel: 0,
|
|
aliases: [
|
|
],
|
|
description: 'reloads commands',
|
|
usages: [
|
|
""
|
|
],
|
|
execute (context) {
|
|
const bot = context.bot
|
|
bot.tellraw("@a", [
|
|
{ text: "Reloading ", color: "gray" },
|
|
{ text: '(', color: "gray" },
|
|
{ text: `${bot.commandManager.commandlist.length}`, color: "gold" },
|
|
{ text: ') ', color: "gray" },
|
|
{ text: 'commands', color: "gray" },
|
|
])
|
|
for (const eachBot of bot.bots) {
|
|
eachBot.commandManager.reload();
|
|
}
|
|
},
|
|
discordExecute (context) {
|
|
const bot = context.bot;
|
|
bot.discord.message.reply("Reloading Commands,.........");
|
|
for (const eachBot of bot.bots) {
|
|
eachBot.commandManager.reload();
|
|
}
|
|
}
|
|
}
|