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!
pip install -U molterLoad 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)- 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-Snekyet because it's unstable. Don't worry, I plan to merge these changes withDis-Snekonce this is ready! discord.py'sFlagConverterand potentially other features are not in this. If they will be added is to be seen.molteris not meant to be 1:1 withdiscord.py's command parser even if it may seem like it. There are some differences, usually done for clarity's sake.