Skip to content

Commit

Permalink
update allstats and stats reports
Browse files Browse the repository at this point in the history
  • Loading branch information
fegloff committed Jan 12, 2024
1 parent fb2c3dc commit fdeb851
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/modules/schedule/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ export class BotSchedule {
totalSupportedMessages,
engagementByCommand,
onetimeUsers,
newUsers
newUsers,
totalUsers
] = await Promise.all([
this.getBotFeeReport(this.holderAddress),
getBotFee(this.holderAddress, 7),
Expand All @@ -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
}
Expand Down

0 comments on commit fdeb851

Please sign in to comment.