perf: 简化控制台输出信息

This commit is contained in:
Soulter
2023-05-14 19:43:12 +08:00
parent a78ebf2fd7
commit d7e4707d5d
2 changed files with 8 additions and 2 deletions

View File

@@ -14,7 +14,10 @@ class QQ:
"""
# print(res)
print("[System-Info] 回复QQ消息中..."+str(res))
_t = str(res)
if len(_t) > 20:
_t = _t[:20]+"..."
print("[QQ-BOT] 回复QQ消息: "+_t)
if isinstance(res, list) and len(res) > 0:
await self.client.sendGroupMessage(source.group_id, res)

View File

@@ -16,7 +16,10 @@ class QQChan():
self.client.run(appid=appid, token=token)
def send_qq_msg(self, message, res, image_mode=False, msg_ref = None):
print("[System-Info] 回复QQ频道消息中..."+str(res))
_t = str(res)
if len(_t) > 20:
_t = _t[:20]+"..."
print("[QQCHAN-BOT] 回复QQ频道消息: "+_t)
if not image_mode:
try:
if msg_ref is not None: