1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-12-17 23:24:20 +00:00
royalnet/royalpack/commands/royalpack.py

22 lines
686 B
Python
Raw Normal View History

2020-04-29 21:54:01 +00:00
from typing import *
import royalnet.commands as rc
2020-05-10 22:46:12 +00:00
2020-04-29 21:54:01 +00:00
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)