Metadata-Version: 2.4
Name: sxnre-rpc
Version: 1.0.14
Summary: Simple Discord Rich Presence RPC library for Python
Author: Sxnre
License-Expression: MIT
Keywords: discord,rpc,rich-presence,websocket,discord-rpc
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: websocket-client>=1.6.0
Dynamic: license-file

# sxnre-rpc

Discord RPC 모듈 - WebSocket을 통한 Rich Presence 관리

---

## 📦 설치

```bash
pip install sxnre-rpc
```

---

## 🚀 사용법

### 기본 사용

```python
from sxnre_rpc import RPCManager, RPCConfig, RPCUser

# 설정
CONFIG: RPCConfig = {
	"RESTART_INTERVAL_MS": 10 * 60 * 1000,  # 10분
	"STATUS_CHECK_INTERVAL_MS": 60 * 1000,  # 1분
	"LOGIN_RETRIES": 3,
	"LOGIN_RETRY_DELAY_MS": 5000,
}

# 사용자 데이터
USERS: list[RPCUser] = [
	{
		"userID": "YOUR_USER_ID",
		"token": "YOUR_DISCORD_TOKEN",
		"name": "사용자 이름",
		"type": "PLAYING",
		"url": "https://twitch.tv/yourname",
		"state": "상태 텍스트",
		"details": "상세 정보",
		"large_image": "",
		"largete": "",
		"small_image": "",
		"smallte": "",
		"button1": "",
		"button1link": "",
		"button2": "",
		"button2link": "",
	},
]

# 실행
if __name__ == "__main__":
	manager = RPCManager(config=CONFIG, users=USERS)
	manager.run()
```

---

## ✨ 기능

* WebSocket을 통한 Discord RPC 관리
* 여러 사용자(클라이언트) 동시 처리
* 자동 재시작 시스템
* 상태 체크 루프
* 로그인 재시도 로직

---

## ⚙️ 요구사항

* Python 3.7 이상
* websocket-client >= 1.6.0

---

## 📜 라이선스

MIT License

---

## 🤝 기여

이슈 및 Pull Request를 환영합니다!
