mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-24 03:54:20 +00:00
15 lines
387 B
Python
15 lines
387 B
Python
from typing import *
|
|
import royalnet
|
|
import royalnet.commands as rc
|
|
from ..types import Faction
|
|
|
|
|
|
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)
|