mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
16 lines
397 B
Python
16 lines
397 B
Python
|
from typing import *
|
||
|
import royalnet
|
||
|
import royalnet.commands as rc
|
||
|
from ..utils import FactionColor
|
||
|
|
||
|
|
||
|
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(FactionColor[args[0].upper()].value)
|