update mirai

This commit is contained in:
2021-05-10 21:04:50 +08:00
parent 5fa20bd1ea
commit 9f9feef2bd
3 changed files with 40 additions and 4 deletions

View File

@@ -57,6 +57,7 @@ class settings:
self._miraiApiHTTPServer = d['miraiApiHTTPServer'] if 'miraiApiHTTPServer' in d and d['miraiApiHTTPServer'] != '' else None
self._miraiApiHTTPAuthKey = d['miraiApiHTTPAuthKey'] if 'miraiApiHTTPAuthKey' in d and d['miraiApiHTTPAuthKey'] != '' else None
self._miraiApiQQ = int(d['miraiApiQQ']) if 'miraiApiQQ' in d and d['miraiApiQQ'].isnumeric() else None
self._miraiApiHTTPVer = d['miraiApiHTTPVer'] if 'miraiApiHTTPVer' in d and d['miraiApiHTTPVer'] != '' else None
@property
def token(self) -> str:
@@ -118,6 +119,10 @@ class settings:
def miraiApiQQ(self) -> int:
return self._miraiApiQQ
@property
def miraiApiHTTPVer(self) -> str:
return self._miraiApiHTTPVer
class commandline:
def __init__(self, commandline: List[str] = None):