Skip to content

Basic Bot Analytics System#1425

Open
firasrg wants to merge 6 commits intodevelopfrom
firasrg/analytics
Open

Basic Bot Analytics System#1425
firasrg wants to merge 6 commits intodevelopfrom
firasrg/analytics

Conversation

@firasrg
Copy link
Contributor

@firasrg firasrg commented Mar 2, 2026

Early implementation of basic analytics for TJ Bot

What’s done so far:

  • NEW: AnalyticsService for analytics Logic and persistence in Database (V16 DB Migration included);
  • Using onSlashCommandInteraction API to record slash commands;

/ping slash command use saved

image

UPDATE 06/03/2025

Following @Zabuzard CR, the analytics feature is no more specified for slash commands. Now, it's open to track any other sort of events!

Demo: the new table structure
image

@firasrg firasrg force-pushed the firasrg/analytics branch from f56996b to 25a4407 Compare March 6, 2026 20:59
@firasrg firasrg marked this pull request as ready for review March 10, 2026 18:27
@firasrg firasrg requested a review from a team as a code owner March 10, 2026 18:27
firasrg added 2 commits March 10, 2026 19:28
- Metrics: renaming persist() to processEvent();
- resources/db: V16 update, removing default value for happened_at column
@sonarqubecloud
Copy link

Copy link
Member

@Zabuzard Zabuzard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

poggers

Copy link
Member

@christolis christolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good for a start 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants