Skip to content

Commit

Permalink
update logiv for chatkey
Browse files Browse the repository at this point in the history
  • Loading branch information
SnapdragonLee committed Mar 6, 2023
1 parent 4d58946 commit c89a475
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion basic/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def play(self):
):
self.reply += data["message"][len(self.reply):]


elif self.type == "c":
print("ask:" + self.prompt)
for data in self.bot.ask(
Expand Down
4 changes: 2 additions & 2 deletions client/wxclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,14 @@ def handle_recv_txt_msg(j):

elif stableDiffRly and (
(content.startswith(privateImgKey) and not is_room) or (content.startswith(groupImgKey) and is_room)):
content = re.sub("^" + (privateImgKey if content.startswith(privateImgKey) else groupImgKey),
content = re.sub("^" + (groupImgKey if is_room else privateImgKey),
"", content, 1)
ig = ImgTask(ws, content, wx_id, room_id, is_room, "2.1")

img_que.put(ig)

elif (content.startswith(privateChatKey) and not is_room) or (content.startswith(groupChatKey) and is_room):
content = re.sub("^" + (privateChatKey if content.startswith(privateChatKey) else groupChatKey), "",
content = re.sub("^" + (groupChatKey if is_room else privateChatKey), "",
content, 1)

if chatbot is None:
Expand Down

0 comments on commit c89a475

Please sign in to comment.