1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2025-02-25 14:15:04 +00:00
royalnet/rpgpack/commands/testhealth.py

16 lines
382 B
Python
Raw Normal View History

2020-02-19 18:14:39 +01:00
from typing import *
import royalnet
import royalnet.commands as rc
2020-02-22 02:16:54 +01:00
from ..types import Health
2020-02-19 18:14:39 +01:00
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])))