fix smalsetup
This commit is contained in:
parent
01e7b84d89
commit
0144e54175
1 changed files with 2 additions and 2 deletions
|
|
@ -9,7 +9,7 @@ from functools import partial, wraps
|
||||||
import click
|
import click
|
||||||
from pygomx.errors import PygomxAPIError
|
from pygomx.errors import PygomxAPIError
|
||||||
|
|
||||||
from pygomx import ApiV0
|
from pygomx.apiv0 import ApiV0
|
||||||
|
|
||||||
|
|
||||||
def catch_exception(func=None, *, handle):
|
def catch_exception(func=None, *, handle):
|
||||||
|
|
@ -53,7 +53,7 @@ def smalsetup(mxid, mxpassfile):
|
||||||
|
|
||||||
now = int(time.time())
|
now = int(time.time())
|
||||||
result_dict["deviceid"] = f"smalbot-{now}"
|
result_dict["deviceid"] = f"smalbot-{now}"
|
||||||
result_dict["devicename"] = f"smalbot-{datetime.fromtimestamp(now)}"
|
result_dict["devicename"] = f"smalbot-{datetime.datetime.fromtimestamp(now)}"
|
||||||
|
|
||||||
ApiV0.Login(result_dict, ".mxpass")
|
ApiV0.Login(result_dict, ".mxpass")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue