Commit Graph

4 Commits

Author SHA1 Message Date
Grand-cocoa
90307e1ee9 refactor(miraibot): 更新注解和服务配置
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 23s
- 修正BotFunction注解中的Service属性值。
- 直接使用KClass<out Event>初始化functionMap。- 在Initialization类中添加全局事件订阅。
- 重构BotConfig类,增加类型和管理员QQ配置。
2024-09-18 14:30:47 +08:00
Grand-cocoa
885e6c7780 refactor(miraibot): 更新BotFunction注解和配置类- 为BotFunction注解指定"BotFunction"名称。
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 5s
-直接在BotConfiguration类中注入服务列表。
- 更新BotConfig以存储管理员ID。
- 调整Initialization类以监听应用就绪事件。
- 更新ExampleService以处理MessageEvent。
- 在application.yml中添加服务器端口配置。
- 在application-dev.yml中配置机器人ID。
2024-09-05 11:38:44 +08:00
Grand-cocoa
ae3213dc63 ```实现BotFunction注解的服务发现机制
机器人框架已更新,支持通过BotFunction注解进行服务发现。注解现包含target和retention元数据,支持在运行时使用反射进行处理。服务实现现在 suspend 函数,以支持异步行为。此外,引入了新的配置属性来定义机器人管理员ID。```
2024-08-30 13:50:01 +08:00
Grand-cocoa
fe1d7a2368 init 2024-08-29 17:02:36 +08:00