RocketChat/Rocket.Chat

View on GitHub
apps/meteor/app/statistics/server/functions/slashCommandsStats.ts

Summary

Maintainability
A
0 mins
Test Coverage
import telemetryEvent from '../lib/telemetryEvents';
import { updateCounter } from './updateStatsCounter';

type slashCommandsDataType = { command: string };

export function slashCommandsStats(data: slashCommandsDataType): void {
    if (data.command === 'jitsi') {
        updateCounter({ settingsId: 'Jitsi_Start_SlashCommands_Count' });
    }
}

telemetryEvent.register('slashCommandsStats', slashCommandsStats);