mirror of
https://github.com/jie65535/mirai-console-jnr-plugin.git
synced 2025-10-20 17:13:00 +08:00
fix: 避免响应bot帐号的戳一戳
This commit is contained in:
@@ -30,7 +30,7 @@ object JNudgeReply : KotlinPlugin(
|
||||
JNRCommand.register()
|
||||
Random.nextInt()
|
||||
globalEventChannel().subscribeAlways<NudgeEvent>(priority = JNRPluginConfig.priority) {
|
||||
if (target.id == bot.id && JNRPluginConfig.replyMessageList.isNotEmpty()) {
|
||||
if (target.id == bot.id && target.id != from.id && JNRPluginConfig.replyMessageList.isNotEmpty()) {
|
||||
val replyList = if(subject is Group){
|
||||
JNRPluginConfig.replyMessageList
|
||||
}else{
|
||||
|
Reference in New Issue
Block a user