mirror of
https://github.com/jie65535/mirai-console-jnr-plugin.git
synced 2025-06-02 17:49:11 +08:00
fix: 避免响应bot帐号的戳一戳
This commit is contained in:
parent
18adb49cdd
commit
6094637f03
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user