From e8da6cf4fe2f8ab80167360c6c63a3c701eef101 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Fri, 3 Sep 2021 17:43:03 -0400 Subject: add pm2 metrics and fix abbreviatednumber type caster --- src/lib/extensions/discord-akairo/BushClient.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/lib/extensions') diff --git a/src/lib/extensions/discord-akairo/BushClient.ts b/src/lib/extensions/discord-akairo/BushClient.ts index ab66f60..e89ff0a 100644 --- a/src/lib/extensions/discord-akairo/BushClient.ts +++ b/src/lib/extensions/discord-akairo/BushClient.ts @@ -1,3 +1,4 @@ +import io from '@pm2/io'; import chalk from 'chalk'; import { AkairoClient, ContextMenuCommandHandler } from 'discord-akairo'; import { @@ -137,6 +138,11 @@ export class BushClient extends AkairoClient; public declare users: BushUserManager; + public metrics = { + guilds: io.metric({ name: 'guilds', id: 'bushbot/guilds' }), + users: io.metric({ name: 'users', id: 'bushbot/users' }) + }; + public config: Config; public listenerHandler: BushListenerHandler; public inhibitorHandler: BushInhibitorHandler; -- cgit