HibiKier / zhenxun_bot

基于 Nonebot2 开发,非常可爱的绪山真寻bot
GNU Affero General Public License v3.0
3.34k stars 605 forks source link

请问如何让一个群禁用机器人或者启用机器人 #368

Closed XKaguya closed 2 years ago

XKaguya commented 2 years ago

如图,尝试过白名单,启用没效果,感觉可能是默认进群总开关的问题,进那个群之前是false的,之后我改成true无果。 甚至尝试过9级权限,依旧没用。 日志如下 05-19 04:30:32 [SUCCESS] nonebot | ONEBOT V11 3134562597 | [message.group.normal]: Message -136482348 from 2894832693@[群:108270499] "色图"

05-19 04:30:32 [INFO] nonebot | Event will be handled by <Matcher from plugins.black_word, type=message, priority=1, temp=False>

05-19 04:30:32 [INFO] nonebot | Event will be handled by <Matcher from plugins.mute, type=message, priority=1, temp=False>

05-19 04:30:32 [INFO] nonebot | Event will be handled by <Matcher from plugins.parse_bilibili_json, type=message, priority=1, temp=False>

05-19 04:30:32 [INFO] nonebot | Event will be handled by <Matcher from basic_plugins.chat_history.chat_message, type=message, priority=1, temp=False>

05-19 04:30:32 [INFO] nonebot | Matcher <Matcher from plugins.black_word, type=message, priority=1, temp=False> running is cancelled

05-19 04:30:32 [INFO] nonebot | Matcher <Matcher from plugins.mute, type=message, priority=1, temp=False> running is cancelled

05-19 04:30:32 [INFO] nonebot | Matcher <Matcher from basic_plugins.chat_history.chat_message, type=message, priority=1, temp=False> running is cancelled

05-19 04:30:32 [INFO] nonebot | Matcher <Matcher from plugins.parse_bilibili_json, type=message, priority=1, temp=False> running is cancelled

05-19 04:30:32 [INFO] nonebot | Event will be handled by <Matcher from basic_plugins.invite_manager, type=message, priority=9, temp=False>

05-19 04:30:32 [INFO] nonebot | Event will be handled by <Matcher from basic_plugins.apscheduler, type=message, priority=9, temp=False>

05-19 04:30:32 [INFO] nonebot | Event will be handled by <Matcher from plugins.fudu, type=message, priority=9, temp=False>

05-19 04:30:32 [INFO] nonebot | Matcher <Matcher from basic_plugins.apscheduler, type=message, priority=9, temp=False> running is cancelled

05-19 04:30:32 [INFO] nonebot | Matcher <Matcher from basic_plugins.invite_manager, type=message, priority=9, temp=False> running is cancelled

05-19 04:30:32 [INFO] nonebot | Matcher <Matcher from plugins.fudu, type=message, priority=9, temp=False> running is cancelled

05-19 04:30:42 [SUCCESS] nonebot | ONEBOT V11 3134562597 | [message.group.normal]: Message 1859395694 from 2894832693@[群:108270499] "《逝逝》"

05-19 04:30:42 [INFO] nonebot | Event will be handled by <Matcher from plugins.black_word, type=message, priority=1, temp=False>

05-19 04:30:42 [INFO] nonebot | Event will be handled by <Matcher from plugins.mute, type=message, priority=1, temp=False>

05-19 04:30:42 [INFO] nonebot | Event will be handled by <Matcher from plugins.parse_bilibili_json, type=message, priority=1, temp=False>

05-19 04:30:42 [INFO] nonebot | Event will be handled by <Matcher from basic_plugins.chat_history.chat_message, type=message, priority=1, temp=False>

05-19 04:30:42 [INFO] nonebot | Matcher <Matcher from plugins.mute, type=message, priority=1, temp=False> running is cancelled

05-19 04:30:42 [INFO] nonebot | Matcher <Matcher from plugins.black_word, type=message, priority=1, temp=False> running is cancelled

05-19 04:30:42 [INFO] nonebot | Matcher <Matcher from basic_plugins.chat_history.chat_message, type=message, priority=1, temp=False> running is cancelled

05-19 04:30:42 [INFO] nonebot | Matcher <Matcher from plugins.parse_bilibili_json, type=message, priority=1, temp=False> running is cancelled

05-19 04:30:42 [INFO] nonebot | Event will be handled by <Matcher from basic_plugins.invite_manager, type=message, priority=9, temp=False>

05-19 04:30:42 [INFO] nonebot | Event will be handled by <Matcher from basic_plugins.apscheduler, type=message, priority=9, temp=False>

05-19 04:30:42 [INFO] nonebot | Event will be handled by <Matcher from plugins.fudu, type=message, priority=9, temp=False>

XKaguya commented 2 years ago

加了个斜杠

HibiKier commented 2 years ago

。那你 @真寻 /帮助 啊

XKaguya commented 2 years ago

草竟然是这样 那为啥其他功能不用艾特也可以触发

HibiKier commented 2 years ago

晕了,看文档自己先琢磨吧

XKaguya commented 2 years ago

好的 谢谢大佬