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

This commit is contained in:
YehowahLiu 2022-04-15 16:44:20 +08:00
parent 18adb49cdd
commit 6094637f03
No known key found for this signature in database
GPG Key ID: 4ABB046FC1540201

View File

@ -30,7 +30,7 @@ object JNudgeReply : KotlinPlugin(
JNRCommand.register() JNRCommand.register()
Random.nextInt() Random.nextInt()
globalEventChannel().subscribeAlways<NudgeEvent>(priority = JNRPluginConfig.priority) { 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){ val replyList = if(subject is Group){
JNRPluginConfig.replyMessageList JNRPluginConfig.replyMessageList
}else{ }else{