diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/extensions/discord-akairo/BushClient.ts | 6 | ||||
-rw-r--r-- | src/tasks/customMetrics.ts | 14 |
2 files changed, 0 insertions, 20 deletions
diff --git a/src/lib/extensions/discord-akairo/BushClient.ts b/src/lib/extensions/discord-akairo/BushClient.ts index e89ff0a..ab66f60 100644 --- a/src/lib/extensions/discord-akairo/BushClient.ts +++ b/src/lib/extensions/discord-akairo/BushClient.ts @@ -1,4 +1,3 @@ -import io from '@pm2/io'; import chalk from 'chalk'; import { AkairoClient, ContextMenuCommandHandler } from 'discord-akairo'; import { @@ -138,11 +137,6 @@ 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; diff --git a/src/tasks/customMetrics.ts b/src/tasks/customMetrics.ts deleted file mode 100644 index 49b17fe..0000000 --- a/src/tasks/customMetrics.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { BushTask } from '@lib'; - -export default class CustomMetricsTask extends BushTask { - public constructor() { - super('customMetrics', { - delay: 10_000, // 10 seconds - runOnStart: true - }); - } - public override async exec(): Promise<void> { - client.metrics.guilds.set(client.guilds.cache.size); - client.metrics.users.set(client.users.cache.size); - } -} |