nonebot2/commands/sudo.py

11 lines
254 B
Python
Raw Normal View History

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)