fix: 避免响应bot帐号的戳一戳

This commit is contained in:
YehowahLiu
2022-04-15 16:44:20 +08:00
parent 18adb49cdd
commit 6094637f03

View File

@@ -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{