临时提交

This commit is contained in:
zw
2025-08-14 14:30:36 +08:00
parent 4c2bf5d8f2
commit f3fe7a661f
4 changed files with 67 additions and 36 deletions

View File

@@ -317,10 +317,9 @@ class ScriptManager():
if chatInput.exists:
print("找到输入框了, 准备发送一条打招呼消息")
# 准备打招呼的文案
# text = random.choice(prologueList)
text = "你好"
text = random.choice(prologueList)
# 翻译成主播国家的语言
msg = Requester.translation(text, "法国")
msg = Requester.translation(text, anchorCountry)
# 准备发送一条信息
chatInput.click()
time.sleep(2)
@@ -329,6 +328,8 @@ class ScriptManager():
time.sleep(1)
else:
print("无法发送信息")
LogManager.error(f"给主播{anchor.anchorId} 发送消息失败", udid)
# 接着下一个主播
removeModelFromAnchorList(anchor)
goBack(4)