forked from vbatts/maubot
Add Matrix client login/register commands
This commit is contained in:
parent
523da95c17
commit
d5e78db5cf
7 changed files with 88 additions and 20 deletions
|
@ -33,10 +33,7 @@ class UploadError(Exception):
|
|||
@click.argument("path")
|
||||
@click.option("-s", "--server", help="The maubot instance to upload the plugin to")
|
||||
def upload(path: str, server: str) -> None:
|
||||
if not server:
|
||||
server, token = get_default_server()
|
||||
else:
|
||||
token = get_token(server)
|
||||
server, token = get_token(server)
|
||||
if not token:
|
||||
return
|
||||
with open(path, "rb") as file:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue