@mochi-analytics/core
v1.0.3
Published
Core client for Mochi — self-hosted analytics for Discord bots
Readme
@mochi-analytics/core
Core JavaScript and TypeScript client for Mochi analytics.
Install
npm install @mochi-analytics/coreUsage
import { MochiClient } from "@mochi-analytics/core";
const mochi = new MochiClient({
url: "https://mochi.example.com",
apiKey: process.env.MOCHI_API_KEY!,
});
mochi.trackCommand("ping", {
guildId: "123",
userId: "456",
success: true,
});
await mochi.shutdown();License
Apache-2.0
