mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
15 lines
382 B
Python
15 lines
382 B
Python
from typing import *
|
|
import royalnet
|
|
import royalnet.commands as rc
|
|
from ..types import Health
|
|
|
|
|
|
class TesthealthCommand(rc.Command):
|
|
name: str = "testhealth"
|
|
|
|
description: str = "Test a health string."
|
|
|
|
syntax: str = "{healthstring}"
|
|
|
|
async def run(self, args: rc.CommandArgs, data: rc.CommandData) -> None:
|
|
await data.reply(str(Health.from_text(args[0])))
|