Metadata-Version: 2.4
Name: mochi-analytics-disnake
Version: 0.2.0
Summary: disnake 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,disnake,mochi
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: disnake>=2.9
Requires-Dist: mochi-analytics>=1.0.0
Provides-Extra: dev
Requires-Dist: pytest-asyncio>=0.23; extra == 'dev'
Requires-Dist: pytest>=8; extra == 'dev'
Description-Content-Type: text/markdown

# mochi-analytics-disnake

disnake adapter for Mochi analytics.

## Install

```sh
pip install mochi-analytics mochi-analytics-disnake disnake
```

## Usage

```python
import disnake
from mochi_analytics import MochiClient
from mochi_analytics_disnake import attach_mochi

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

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

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

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

## License

Apache-2.0
