@mochi-analytics/eris
v0.2.0
Published
Eris adapter for Mochi — auto-instruments commands, guild joins/leaves, and health snapshots
Downloads
246
Readme
@mochi-analytics/eris
Eris adapter for Mochi analytics.
Install
npm install @mochi-analytics/core @mochi-analytics/eris erisUsage
import { MochiClient } from "@mochi-analytics/core";
import { attachMochi } from "@mochi-analytics/eris";
const mochi = new MochiClient({
url: "https://mochi.example.com",
apiKey: process.env.MOCHI_API_KEY!,
});
const detachMochi = attachMochi(client, mochi);Eris runs every shard inside one process, so one snapshot is sent per shard, each carrying that shard's own guild count.
See the Eris guide for the full documentation.
License
Apache-2.0
