bot
commited on
Commit
·
1e582c5
1
Parent(s):
1d6678e
fix
Browse files
main.py
CHANGED
@@ -189,12 +189,11 @@ async def quota(update: Update, context):
|
|
189 |
}
|
190 |
"""
|
191 |
quota_info = await THUNDERX_CLIENT.get_quota_info()
|
192 |
-
print(quota_info)
|
193 |
if quota_info["quota"]["usage"] is None:
|
194 |
await update.message.reply_text("未找到使用信息,请稍后再试!")
|
195 |
else:
|
196 |
await update.message.reply_text(
|
197 |
-
f"使用信息:\n{format_bytes(quota_info['quota']['limit'])}/{format_bytes(quota_info['quota']['usage'])}\n到期时间:\n{quota_info['expires_at']}"
|
198 |
)
|
199 |
|
200 |
|
|
|
189 |
}
|
190 |
"""
|
191 |
quota_info = await THUNDERX_CLIENT.get_quota_info()
|
|
|
192 |
if quota_info["quota"]["usage"] is None:
|
193 |
await update.message.reply_text("未找到使用信息,请稍后再试!")
|
194 |
else:
|
195 |
await update.message.reply_text(
|
196 |
+
f"使用信息:\n{format_bytes(int(quota_info['quota']['limit']))}/{format_bytes(int(quota_info['quota']['usage']))}\n到期时间:\n{quota_info['expires_at']}"
|
197 |
)
|
198 |
|
199 |
|