nonebot2/commands/sudo.py
2016-12-29 23:45:34 +08:00

11 lines
254 B
Python

from command import CommandRegistry
from commands import core
__registry__ = cr = CommandRegistry()
@cr.register('test')
@cr.restrict(full_command_only=True, superuser_only=True)
def test(_, ctx_msg):
core.echo('Your are the superuser!', ctx_msg)