mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-09-29 08:39:59 +08:00
修复色图r连发时未检测当前会话是否为群聊
This commit is contained in:
@@ -246,7 +246,11 @@ async def _(bot: Bot, event: MessageEvent, reg_group: Tuple[Any, ...] = RegexGro
|
||||
num = int(num)
|
||||
except ValueError:
|
||||
num = 1
|
||||
if r18 and not Config.get_config("send_setu", "ALLOW_GROUP_R18"):
|
||||
if (
|
||||
r18
|
||||
and not Config.get_config("send_setu", "ALLOW_GROUP_R18")
|
||||
and isinstance(event, GroupMessageEvent)
|
||||
):
|
||||
await setu.finish(
|
||||
random.choice(["这种不好意思的东西怎么可能给这么多人看啦", "羞羞脸!给我滚出克私聊!", "变态变态变态变态大变态!"])
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user