1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Add VersionCommand

This commit is contained in:
Steffo 2019-10-19 12:09:10 +02:00
parent 02b73bce1d
commit a4cfa42fb0
3 changed files with 17 additions and 1 deletions

View file

@ -1,9 +1,11 @@
# Imports go here! # Imports go here!
from .ping import PingCommand from .ping import PingCommand
from .version import VersionCommand
# Enter the commands of your Pack here! # Enter the commands of your Pack here!
available_commands = [ available_commands = [
PingCommand, PingCommand,
VersionCommand
] ]
# Don't change this, it should automatically generate __all__ # Don't change this, it should automatically generate __all__

View 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)

View file

@ -1 +1 @@
semantic = "5.0a66" semantic = "5.0a69"