Giter Club home page Giter Club logo

Comments (4)

ForteScarlet avatar ForteScarlet commented on May 27, 2024

重命名

  • 重命名项目为 simbot-component-qq-guild,包路径中的所有 tencentguild 重命名为 qguild,依赖坐标中 tencent-guild 重命名为 qq-guild

api模块

  • 所有API构造方法私有化,开放工厂函数
  • 部分内容更新调整(不兼容性)
  • 不再依赖、实现 simbot-api 模块。api模块将成为完全、纯粹的QQ频道API实现,没有任何多余依赖(除kotlinx.serialization、ktor等必需品),ID等属性也直接作为字符串等标准类型
  • 各API提供直接的 data class 数据模型实现(以前是仅暴露接口,隐藏数据类实现)。API返回值直接使用数据模型,不再做内部实现隐藏。

标准库模块

  • 标准库不再实现 simbot 相关模块,将作为纯粹的QQ频道事件连接、简单事件调度的模块。
  • 优化、完善事件类型(和其他opcode类型)的解析,使得API更直观、应用更简单、逻辑更清晰,也更易于维护。
  • bot配置内容调整,实现内容调整
  • 调整内部的连接、重连等逻辑,内部逻辑替换为状态循环的方式简化、拆解各步骤。

组件模块

  • 组件中相关类型命名以 QQGuildQG 开头为主。
  • 提供 QGBotQGGuild 内部的内建缓存机制,尝试着实现在条件满足的情况下内建缓存来避免API调用,并支持条件不足的情况下降级。
  • 相当于重新实现了各个类型
  • 事件调度(初始化)机制调整,内建缓存的更新、事件信息初始化、事件调度逻辑更紧密通顺,且处于同一个标准库事件中。

from simbot-component-qq-guild.

ForteScarlet avatar ForteScarlet commented on May 27, 2024

内建**缓存,反正api又没请求限制

from simbot-component-qq-guild.

ForteScarlet avatar ForteScarlet commented on May 27, 2024

重构基本完成,但是效果仍需观察

from simbot-component-qq-guild.

ForteScarlet avatar ForteScarlet commented on May 27, 2024

持续几天的运行已经是可以的了

from simbot-component-qq-guild.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.