1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2025-02-17 10:53:57 +00:00
royalnet/rpgpack/commands/testfaction.py

16 lines
387 B
Python
Raw Normal View History

2020-02-19 18:14:39 +01:00
from typing import *
import royalnet
import royalnet.commands as rc
from ..utils import Faction
2020-02-19 18:14:39 +01:00
class TestfactionCommand(rc.Command):
name: str = "testfaction"
description: str = "Test a faction string."
syntax: str = "{factionstring}"
async def run(self, args: rc.CommandArgs, data: rc.CommandData) -> None:
await data.reply(Faction[args[0].upper()].value)