Skip to content
This repository has been archived by the owner on Jan 8, 2023. It is now read-only.

如果信息在@bot之前 会导致回复出问题 #4

Closed
Echoosx opened this issue Dec 2, 2021 · 1 comment
Closed

如果信息在@bot之前 会导致回复出问题 #4

Echoosx opened this issue Dec 2, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@Echoosx
Copy link
Contributor

Echoosx commented Dec 2, 2021

简单来说,问题是这个判断导致的:
image
由于聊天环境中[mirai:at:bot]message之间有一个空格,所以如果在聊天环境下@bot之前有内容的话,就会导致message空格分两次请求api,并且将两次的回复拼接起来,例如:
Snipaste_2021-12-02_09-28-47

@Nambers Nambers added the bug Something isn't working label Dec 6, 2021
@Nambers Nambers closed this as completed in b54ee7e Dec 6, 2021
@Nambers
Copy link
Owner

Nambers commented Dec 6, 2021

试一下1.5.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants