1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Add royalpack command

This commit is contained in:
Steffo 2020-04-29 23:54:01 +02:00
parent e820846a27
commit 1c5f65410f
2 changed files with 22 additions and 0 deletions

View file

@ -53,6 +53,7 @@ from .lazyfunkwhalealbum import LazyfunkwhalealbumCommand
from .matchmaking import MatchmakingCommand
from .cvstats import CvstatsCommand
from .elevatormusic import ElevatormusicCommand
from .royalpack import RoyalpackCommand
# Enter the commands of your Pack here!
available_commands = [
@ -110,6 +111,7 @@ available_commands = [
MatchmakingCommand,
CvstatsCommand,
ElevatormusicCommand,
RoyalpackCommand,
]
# Don't change this, it should automatically generate __all__

View file

@ -0,0 +1,20 @@
from typing import *
import royalnet.commands as rc
from ..version import semantic
class RoyalpackCommand(rc.Command):
name: str = "royalpack"
description: str = "Visualizza la versione attuale di Royalpack."
syntax: str = ""
async def run(self, args: rc.CommandArgs, data: rc.CommandData) -> None:
if __debug__:
message = f" Royalpack [url=https://github.com/Steffo99/royalpack/]Unreleased[/url]\n"
else:
message = f" Royalpack [url=https://github.com/Steffo99/royalpack/releases/tag/{semantic}]{semantic}[/url]\n"
if "69" in semantic:
message += "(Nice.)"
await data.reply(message)