Metadata-Version: 2.4
Name: mochi-analytics-nextcord
Version: 0.2.0
Summary: nextcord adapter for Mochi - auto-instruments commands, guild joins/leaves, and health snapshots
Project-URL: Homepage, https://github.com/mochi-analytics/mochi-py
Project-URL: Repository, https://github.com/mochi-analytics/mochi-py
Project-URL: Bug Tracker, https://github.com/mochi-analytics/mochi-py/issues
Author-email: Mochi Analytics <contact@bwmp.dev>
License-Expression: Apache-2.0
License-File: LICENSE
Keywords: analytics,bot,discord,mochi,nextcord
Classifier: Framework :: AsyncIO
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.10
Requires-Dist: mochi-analytics>=1.0.0
Requires-Dist: nextcord>=2.6
Provides-Extra: dev
Requires-Dist: pytest-asyncio>=0.23; extra == 'dev'
Requires-Dist: pytest>=8; extra == 'dev'
Description-Content-Type: text/markdown

# mochi-analytics-nextcord

nextcord adapter for Mochi analytics.

## Install

```sh
pip install mochi-analytics mochi-analytics-nextcord nextcord
```

## Usage

```python
import nextcord
from mochi_analytics import MochiClient
from mochi_analytics_nextcord import attach_mochi

mochi = MochiClient(url="https://mochi.example.com", api_key="mochi_sk_...")

client = nextcord.Client(intents=nextcord.Intents.default())
detach = attach_mochi(client, mochi)
```

An `AutoShardedClient` sends one snapshot per shard, each carrying that shard's
own guild count.

See the [nextcord guide](https://docs.mochis.dev/sdks/nextcord) for the full documentation.

## License

Apache-2.0
