crescent-ext-kebabify

Turn your command names into kebabs.


License
MPL-2.0
Install
pip install crescent-ext-kebabify==0.1.1

Documentation

crescent-ext-kebabify

Turn your command names into kebabs.

Installing

pip install crescent-ext-kebabify

Example

import crescent
from crescent.ext import kebab

bot = crescent.Bot("TOKEN")


# Make this command's name `my-class-command`
@bot.include
@kebab.ify
@crescent.command
class MyClassCommand:
    async def callback(self, ctx: crescent.Context):
        ...


# Make this command's name `my-function-command`
@bot.include
@kebab.ify
@crescent.command
async def my_function_commannd(ctx: crescent.Context):
    ...

bot.run()