pack <package Name> - install a package
packs - view all installable packages
h <searchstring> - search for a help helps username: Username of the user (with login)
live_debug: Get Debug information's about the Doc console
dev: raise errors and exit
guest: no login, but no saves
fromcoreimportdoctest=doc.doc()
test.log("<command>") # logs a single command to this doc consoletest.client() # starts the client (default: terminal)# your DOC.py filefromcore.newimportpluginthis_plugin=plugin.plugin("<name from the dict of this file>")
@this_plugin.command("command")defcommand():
pass@this_plugin.command("print", instance=True) #create a command with get input and print something outdefprint_com(instance):
instance.docprint("hello i am a command, say me hello!")
instance.docinput(placeholder="hello? ")
@this_plugin.command("args", args=True) # create a plugin get the argumentsdefargs_parser(args):
ifargsisnot []:
args.clear()
@this_plugin.command("echo", args=True, instance=True) # you can combine this defecho(args, instance): # attention don't change args, instance -> instance, argsdelargs[0] # args[0] is to 100% echoinstance.docprint(" ".join(args))fromcore.newimportListenerclassexample_listener(Listener):
def__init__(self):
super().__init__()
# for exampledefConsoleRun(self, console, command: str, sender: str):
console.docprint("execute: "+command)