Skip to main content

PyPI Downloads Code style: black

Molter - WIP

Shedding a new skin on Dis-Snek's commands.

Currently, its goals are to make message commands more similar (not exactly the same!) to discord.py's message commands.

Primary developed by Astrea49. Direct questions about the project to her, please!

Installing

pip install -U git+https://github.com/Discord-Snake-Pit/Dis-Snek.git@dev git+https://github.com/Discord-Snake-Pit/molter.git@dev

Example

Load this as a normal scale in dis_snek:

import dis_snek
import molter
from typing import Optional


class CommandTest(dis_snek.Scale):

    @molter.msg_command()
    async def test(
        self,
        ctx: dis_snek.MessageContext,
        a_num: int,
        a_user: Optional[dis_snek.Member],
        a_bool: bool,
    ):
        await ctx.reply(f"{a_num} {a_user} {a_bool}")


def setup(bot):
    CommandTest(bot)

Note

  • This project is a work in progress - it is unstable. Basic testing has been done, but more is still required.
  • This hasn't been merged with Dis-Snek yet because it's unstable. Don't worry, I plan to merge these changes with Dis-Snek once this is ready!
  • discord.py's FlagConverter and potentially other features are not in this. If they will be added is to be seen.
  • molter is not meant to be 1:1 with discord.py's command parser even if it may seem like it. There are some differences, usually done for clarity's sake.

Metadata

Release files for molter 0.11.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for molter 0.11.0
File Size Uploaded
molter-0.11.0.tar.gz 19.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for molter 0.11.0
File Interpreter ABI Platform
molter-0.11.0-py3-none-any.whl Python 3 none any Details

Total release size: 38.6 kB

Release files / molter-0.11.0.tar.gz

Download URL molter-0.11.0.tar.gz
Size 19.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1e06e021a00986b9218e67bce062cb52eab5c86e8187b28e68f7dca8df853aaa
BLAKE2b-256 checksum
How to use checksums
005ff5b3f489f4f81defaab9539164593b54b23964de208f23e12c6f9fba9f79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.4

Release files / molter-0.11.0-py3-none-any.whl

Download URL molter-0.11.0-py3-none-any.whl
Size 19.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ae311e34fc93bfa37643f86c382b1f104753e451e9904995f0f34f5edda8daa
BLAKE2b-256 checksum
How to use checksums
0622908b7206e66ecdd560028ce2fb034f40d089306fd1f1e54df45d77f12554
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.4

Release history Release notifications | RSS feed

This release

0.11.0 This release

2 release files

0.10.0

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page