mirror of
http://shenjack.top:5100/shenjack/icalingua-python-bot.git
synced 2024-11-23 12:41:05 +08:00
更新bmcl
This commit is contained in:
parent
5cba529e45
commit
c41cc5e3ff
|
@ -14,7 +14,7 @@ else:
|
||||||
IcaNewMessage = TypeVar("NewMessage")
|
IcaNewMessage = TypeVar("NewMessage")
|
||||||
IcaClient = TypeVar("IcaClient")
|
IcaClient = TypeVar("IcaClient")
|
||||||
|
|
||||||
_version_ = "2.3.0-rs"
|
_version_ = "2.3.1-rs"
|
||||||
backend_version = "unknown"
|
backend_version = "unknown"
|
||||||
|
|
||||||
def format_data_size(data_bytes: float) -> str:
|
def format_data_size(data_bytes: float) -> str:
|
||||||
|
@ -129,6 +129,8 @@ def display_rank_min(ranks: list, req_time) -> str:
|
||||||
cache.write('✅' if rank['isEnabled'] else '❌')
|
cache.write('✅' if rank['isEnabled'] else '❌')
|
||||||
if 'fullSize' in rank:
|
if 'fullSize' in rank:
|
||||||
cache.write('🌕' if rank['fullSize'] else '🌘')
|
cache.write('🌕' if rank['fullSize'] else '🌘')
|
||||||
|
if 'version' in rank:
|
||||||
|
cache.write('🟢' if rank['version'] == backend_version else '🟠')
|
||||||
cache.write(f"-{rank['index']+1:3}")
|
cache.write(f"-{rank['index']+1:3}")
|
||||||
cache.write(f"|{rank['name']}\n")
|
cache.write(f"|{rank['name']}\n")
|
||||||
else:
|
else:
|
||||||
|
@ -155,10 +157,7 @@ def display_rank_full(ranks: list, req_time) -> str:
|
||||||
cache.write(f"{rank['name']}")
|
cache.write(f"{rank['name']}")
|
||||||
if 'version' in rank:
|
if 'version' in rank:
|
||||||
cache.write(f"|{rank['version']}")
|
cache.write(f"|{rank['version']}")
|
||||||
if rank['version'] != backend_version:
|
cache.write('🟢' if rank['version'] == backend_version else '🟠')
|
||||||
cache.write("🟠")
|
|
||||||
else:
|
|
||||||
cache.write("🟢")
|
|
||||||
cache.write('\n')
|
cache.write('\n')
|
||||||
# 用户/赞助信息
|
# 用户/赞助信息
|
||||||
if ('user' in rank) and (rank['user'] is not None):
|
if ('user' in rank) and (rank['user'] is not None):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user