diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-09-03 17:43:03 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-09-03 17:43:03 -0400 |
commit | e8da6cf4fe2f8ab80167360c6c63a3c701eef101 (patch) | |
tree | d9e0776bbfeec49148b593ff938c3f81105a8db9 /src/lib/extensions/discord-akairo/BushClient.ts | |
parent | 86cb31c8ec889177393814139dabd49722474cc6 (diff) | |
download | tanzanite-e8da6cf4fe2f8ab80167360c6c63a3c701eef101.tar.gz tanzanite-e8da6cf4fe2f8ab80167360c6c63a3c701eef101.tar.bz2 tanzanite-e8da6cf4fe2f8ab80167360c6c63a3c701eef101.zip |
add pm2 metrics and fix abbreviatednumber type caster
Diffstat (limited to 'src/lib/extensions/discord-akairo/BushClient.ts')
-rw-r--r-- | src/lib/extensions/discord-akairo/BushClient.ts | 6 |
1 files changed, 6 insertions, 0 deletions
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<Ready extends boolean = boolean> extends AkairoClient<Re public declare user: If<Ready, BushClientUser>; 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; |