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:
parent
e820846a27
commit
1c5f65410f
2 changed files with 22 additions and 0 deletions
|
@ -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__
|
||||
|
|
20
royalpack/commands/royalpack.py
Normal file
20
royalpack/commands/royalpack.py
Normal 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)
|
Loading…
Reference in a new issue