From fdeb851112f3077b283157dcb4b192c61f72c92f Mon Sep 17 00:00:00 2001 From: fegloff Date: Fri, 12 Jan 2024 13:31:32 -0400 Subject: [PATCH] update allstats and stats reports --- src/modules/schedule/index.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/modules/schedule/index.ts b/src/modules/schedule/index.ts index 9c6128de..1ed95d75 100644 --- a/src/modules/schedule/index.ts +++ b/src/modules/schedule/index.ts @@ -179,7 +179,8 @@ export class BotSchedule { totalSupportedMessages, engagementByCommand, onetimeUsers, - newUsers + newUsers, + totalUsers ] = await Promise.all([ this.getBotFeeReport(this.holderAddress), getBotFee(this.holderAddress, 7), @@ -191,19 +192,21 @@ export class BotSchedule { statsService.getTotalMessages(7, true), this.generateReportEngagementByCommand(7), statsService.getOnetimeUsers(), - statsService.getNewUsers(7) + statsService.getNewUsers(7), + statsService.getUniqueUsersCount() ]) const report = `\nBot fees: *${botFeesReport}*` + `\nWeekly bot fees collected: *${abbreviateNumber(botFeesWeekly)}*` + `\nDaily Active Users: *${abbreviateNumber(dau)}*` + - `\nOne-time users: *${onetimeUsers}*` + `\nTotal fees users pay in ONE: *${abbreviateNumber(totalOne)}*` + `\nTotal fees users pay in free credits: *${abbreviateNumber(totalCredits)}*` + `\nWeekly active users: *${abbreviateNumber(weeklyUsers)}*` + `\nWeekly new users: *${abbreviateNumber(newUsers)}*` + `\nWeekly user engagement (any commands): *${abbreviateNumber(totalMessages)}*` + `\nWeekly user engagement (commands supported by bot): *${abbreviateNumber(totalSupportedMessages)}*` + + `\nTotal users: *${totalUsers}*` + + `\nOne-time users: *${onetimeUsers}*` + `\n\n${engagementByCommand}` return report }