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

# mochi-analytics-pycord

Py-cord adapter for Mochi analytics.

> Py-cord installs itself under the `discord` import name, exactly as discord.py
> does, so the two cannot coexist in one environment. Install
> `mochi-analytics-pycord` **or** `mochi-analytics-discordpy`, never both.

## Install

```sh
pip install mochi-analytics mochi-analytics-pycord py-cord
```

## Usage

```python
import discord
from mochi_analytics import MochiClient
from mochi_analytics_pycord import attach_mochi

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

bot = discord.Bot(intents=discord.Intents.default())
detach = attach_mochi(bot, mochi)
```

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

See the [Py-cord guide](https://docs.mochis.dev/sdks/pycord) for the full documentation.

## License

Apache-2.0
