mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
Change version stuff
This commit is contained in:
parent
cf6a09d5af
commit
593677b0d5
3 changed files with 8 additions and 7 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "royalpack"
|
name = "royalpack"
|
||||||
version = "5.13.2"
|
version = "5.13.4"
|
||||||
description = "A Royalnet command pack for the Royal Games community"
|
description = "A Royalnet command pack for the Royal Games community"
|
||||||
authors = ["Stefano Pigozzi <ste.pigozzi@gmail.com>"]
|
authors = ["Stefano Pigozzi <ste.pigozzi@gmail.com>"]
|
||||||
license = "AGPL-3.0+"
|
license = "AGPL-3.0+"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
from typing import *
|
from typing import *
|
||||||
import royalnet.commands as rc
|
|
||||||
|
|
||||||
from ..version import semantic
|
import pkg_resources
|
||||||
|
import royalnet.commands as rc
|
||||||
|
|
||||||
|
|
||||||
class RoyalpackCommand(rc.Command):
|
class RoyalpackCommand(rc.Command):
|
||||||
|
@ -11,11 +11,15 @@ class RoyalpackCommand(rc.Command):
|
||||||
|
|
||||||
syntax: str = ""
|
syntax: str = ""
|
||||||
|
|
||||||
|
@property
|
||||||
|
def royalpack_version(self):
|
||||||
|
return pkg_resources.get_distribution("royalpack").version
|
||||||
|
|
||||||
async def run(self, args: rc.CommandArgs, data: rc.CommandData) -> None:
|
async def run(self, args: rc.CommandArgs, data: rc.CommandData) -> None:
|
||||||
if __debug__:
|
if __debug__:
|
||||||
message = f"ℹ️ Royalpack [url=https://github.com/Steffo99/royalpack/]Unreleased[/url]\n"
|
message = f"ℹ️ Royalpack [url=https://github.com/Steffo99/royalpack/]Unreleased[/url]\n"
|
||||||
else:
|
else:
|
||||||
message = f"ℹ️ Royalpack [url=https://github.com/Steffo99/royalpack/releases/tag/{semantic}]{semantic}[/url]\n"
|
message = f"ℹ️ Royalpack [url=https://github.com/Steffo99/royalpack/releases/tag/{self.royalpack_version}]{self.royalpack_version}[/url]\n"
|
||||||
if "69" in semantic:
|
if "69" in semantic:
|
||||||
message += "(Nice.)"
|
message += "(Nice.)"
|
||||||
await data.reply(message)
|
await data.reply(message)
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
import pkg_resources
|
|
||||||
|
|
||||||
semantic = pkg_resources.get_distribution("royalpack").version
|
|
Loading…
Reference in a new issue