apps/meteor/app/statistics/server/functions/slashCommandsStats.ts
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);