mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
Add VersionCommand
This commit is contained in:
parent
02b73bce1d
commit
a4cfa42fb0
3 changed files with 17 additions and 1 deletions
|
@ -1,9 +1,11 @@
|
|||
# Imports go here!
|
||||
from .ping import PingCommand
|
||||
from .version import VersionCommand
|
||||
|
||||
# Enter the commands of your Pack here!
|
||||
available_commands = [
|
||||
PingCommand,
|
||||
VersionCommand
|
||||
]
|
||||
|
||||
# Don't change this, it should automatically generate __all__
|
||||
|
|
14
royalnet/packs/common/commands/version.py
Normal file
14
royalnet/packs/common/commands/version.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
from royalnet.commands import *
|
||||
from royalnet.version import semantic
|
||||
|
||||
|
||||
class VersionCommand(Command):
|
||||
name: str = "version"
|
||||
|
||||
description: str = "Get the current Royalnet version."
|
||||
|
||||
async def run(self, args: CommandArgs, data: CommandData) -> None:
|
||||
message = f"ℹ️ Royalnet {semantic}\n"
|
||||
if "69" in message:
|
||||
message += "(Nice.)"
|
||||
await data.reply(message)
|
|
@ -1 +1 @@
|
|||
semantic = "5.0a66"
|
||||
semantic = "5.0a69"
|
||||
|
|
Loading…
Reference in a new issue