mirror of
https://github.com/jie65535/JChatGPT.git
synced 2025-10-20 17:13:37 +08:00
Add reply message call
This commit is contained in:
@@ -126,9 +126,10 @@ object JChatGPT : KotlinPlugin(
|
||||
}
|
||||
}
|
||||
|
||||
// 如果没有@bot或者触发关键字则直接结束
|
||||
// 如果没有 @bot 或者 触发关键字 或者 回复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
|
||||
|
||||
startChat(event)
|
||||
|
Reference in New Issue
Block a user