mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-18 18:10:37 +08:00
perf: 简化控制台输出信息
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user