A Python SDK for interacting with the Clovord Gateway and REST API.
pip install clovordFor local development:
pip install -e .[dev]import clovord
from clovord import Bot
import json
intents = clovord.Intents.default()
intents.members = True
intents.messages = True
intents.presence = True
bot = Bot(intents=intents)
@bot.event
async def on_ready():
print("READY EVENT FIRED")
@bot.event
async def on_ready_payload(data):
print("READY PAYLOAD:")
print(json.dumps(data, indent=2, ensure_ascii=False))
bot.run("YourBotToken") Botis the main entrypoint.- The Gateway connection is handled internally with heartbeat and reconnect support.
- The REST client is asynchronous and available through
bot.http.