socket-bot/news/0-9.md

1.1 KiB

0.9 更新日志

0.9.0

  • 修复了 Python 插件停不下来就真的停不下来的问题
  • 让初始化的时候 插件启/禁状态显示更明显了
    • 有颜色啦!
  • 加了不少颜色

ica 2.0.1

添加了 Room 相关的 api

  • IcaStatus 添加了 rooms(self) -> list[IcaRoom] 方法

    • 用于获取当前所有的房间
  • 添加了 IcaRoom

    • 用于表示一个房间

    • room_id -> int 群号 (i64)

    • def is_group(self) -> bool 是否为群聊

    • def is_chat(self) -> bool 是否为私聊

    • room_name -> int 群名 (String)

    • unread_count -> int 未读消息数 (u64)

    • priority -> int 优先级 (u8)

    • utime -> int 最后活跃时间 (unix sec * 1000)

    • def new_message_to(self, content: str) -> IcaSendMessage

      • 用于创建一条指向这个房间的消息

添加了 Ica 侧的相关配置获取

  • IcaStatus 添加了 admins(self) -> list[UserId] 方法

    • 用于获取当前所有的管理员
  • IcaStatus 添加了 blocked(self) -> list[UserId] 方法

    • 用于获取当前所有的被屏蔽的人