Skip to main content

SDK for building MMO Maid Marketplace plugins

Project description

MMO Maid SDK

SDK for building plugins for the MMO Maid Discord bot platform.

MMO Maid runs marketplace plugins in sandboxed Docker containers. This SDK is the official Python interface plugins use to receive Discord events, call the Discord API, store data, render dashboards, and emit metrics — all routed through the platform so plugins never need direct network access or credentials.

Install

pip install mmo-maid-sdk

Python 3.10 or newer.

Hello, plugin

from mmo_maid_sdk import Plugin, Context

plugin = Plugin()

@plugin.on_event("message_create")
def on_message(ctx: Context, event: dict):
    if "!ping" in event.get("content", ""):
        ctx.discord.send_message(
            channel_id=event["channel_id"],
            content="Pong!",
        )

plugin.run()  # must be the last line

Drop this in a folder named my_plugin/ as __main__.py, zip it, and upload it via the Developer Portal.

CLI

The package installs an mmo command for scaffolding and a local dev loop:

mmo new my_plugin     # scaffold a new plugin from the template
mmo dev               # run your plugin locally against a mock host

Documentation

Full plugin contract, capability reference, and publishing guide:

License

MIT — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mmo_maid_sdk-0.5.3.tar.gz (41.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mmo_maid_sdk-0.5.3-py3-none-any.whl (44.5 kB view details)

Uploaded Python 3

File details

Details for the file mmo_maid_sdk-0.5.3.tar.gz.

File metadata

  • Download URL: mmo_maid_sdk-0.5.3.tar.gz
  • Upload date:
  • Size: 41.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mmo_maid_sdk-0.5.3.tar.gz
Algorithm Hash digest
SHA256 7a5f5022f150b83ea89ecfe21eefc0a6aa526e10a6cde72d725224c1c51a5900
MD5 f9343eadbd16bc9a1fb45fa135264873
BLAKE2b-256 79a2cda91684ceae826afdd2a645e6744afedf3a12f7ef34336365b7b5f6797f

See more details on using hashes here.

Provenance

The following attestation bundles were made for mmo_maid_sdk-0.5.3.tar.gz:

Publisher: publish.yml on NotUSeee/mmo-maid-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mmo_maid_sdk-0.5.3-py3-none-any.whl.

File metadata

  • Download URL: mmo_maid_sdk-0.5.3-py3-none-any.whl
  • Upload date:
  • Size: 44.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mmo_maid_sdk-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f6cf04ae2a63562528144edd5a1d82b13a2c6236a074aca2b69537f40f40b513
MD5 a2e28f0cfcc71357f02dbd6dc2eb275f
BLAKE2b-256 812d48b8ceff944ead5154fc2faa57c36a530c77a8cfa56dd1defbee696de54d

See more details on using hashes here.

Provenance

The following attestation bundles were made for mmo_maid_sdk-0.5.3-py3-none-any.whl:

Publisher: publish.yml on NotUSeee/mmo-maid-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page