3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-14 05:45:02 +00:00

Add command to monitor plugin load performance

This commit is contained in:
Dragory 2021-09-04 22:11:38 +03:00
parent e95987a766
commit 05c2434efc
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
3 changed files with 27 additions and 0 deletions

View file

@ -18,11 +18,13 @@ import { ReloadServerCmd } from "./commands/ReloadServerCmd";
import { RemoveDashboardUserCmd } from "./commands/RemoveDashboardUserCmd";
import { ServersCmd } from "./commands/ServersCmd";
import { BotControlPluginType, ConfigSchema } from "./types";
import { PerformanceCmd } from "./commands/PerformanceCmd";
const defaultOptions = {
config: {
can_use: false,
can_eligible: false,
can_performance: false,
update_cmd: null,
},
};
@ -45,6 +47,7 @@ export const BotControlPlugin = zeppelinGlobalPlugin<BotControlPluginType>()({
ListDashboardUsersCmd,
ListDashboardPermsCmd,
EligibleCmd,
PerformanceCmd,
],
async afterLoad(pluginData) {