mirror of
https://github.com/jie65535/JChatGPT.git
synced 2026-10-30 13:42:05 +08:00
Add reply message call
This commit is contained in:
1 parent
af17f1e698
commit
e2caba6a10
1 file changed
+3
-2
@@ -126,9 +126,10 @@ object JChatGPT : KotlinPlugin(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 如果没有@bot或者触发关键字则直接结束
|
// 如果没有 @bot 或者 触发关键字 或者 回复bot的消息 则直接结束
|
||||||
if (!event.message.contains(At(event.bot))
|
if (!event.message.contains(At(event.bot))
|
||||||
&& keyword?.let { event.message.content.contains(it) } != true)
|
&& keyword?.let { event.message.content.contains(it) } != true
|
||||||
|
&& event.message[QuoteReply]?.source?.fromId != event.bot.id)
|
||||||
return
|
return
|
||||||
|
|
||||||
startChat(event)
|
startChat(event)
|
||||||
|
|||||||
Reference in new issue
Block a user