Skip to content

Less tedious private commands #205

@Hackmastr

Description

@Hackmastr

Hello,

Writing commands and checking whether the user typed a slash('/') or an exclamation mark('!') to privatize the command, starts to annoy after some time.

I was talking with iPlayer, and I believe he had few nice ideas.

For example, We use 2 decorators, but tell SP that one of them is private:

@SayCommand("!cmd")
@SayCommand("/cmd", suppress_output=True)

Or use only one decorator, and tell SP to automatically register the private command:

@SayCommand("!cmd", register_private_command=True)

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions