1
0
Fork 0
forked from vbatts/maubot

Add Matrix client login/register commands

This commit is contained in:
Tulir Asokan 2019-06-08 17:02:44 +03:00
parent 523da95c17
commit d5e78db5cf
7 changed files with 88 additions and 20 deletions

View file

@ -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: