コード例 #1
0
ファイル: preprocess.py プロジェクト: landlordlycat/Pbot
async def pre(bot: Bot, event: Event, state: dict):
    if event.type == "message":
        event.current_arg_images = [
            seg.data["url"] for seg in event.message if seg.type == "image"
        ]
        if (event.self_id == "3418961367" and event.detail_type == "group"
                and event.group_id == 145029700):
            raise IgnoredException("该群有两个机器人")
コード例 #2
0
ファイル: preprocess.py プロジェクト: yoiyami96/Pbot
async def pre(bot: Bot, event: Event, state: dict):
    if event.type == "message":
        event.current_arg_images = [
            seg.data["url"] for seg in event.message if seg.type == "image"
        ]