Grand-cocoa
|
787520c98b
|
修改 打包方式
Mirai-build / Explore-Gitea-Actions (push) Failing after 12s
|
2024-12-26 14:16:22 +08:00 |
|
Grand-cocoa
|
f818241731
|
修改 实现改为workflow
Mirai-build / Explore-Gitea-Actions (push) Failing after 26s
|
2024-12-25 19:08:33 +08:00 |
|
Grand-cocoa
|
10ed0dc703
|
```更改数据库用户名以符合专用配置
Mirai-build / Explore-Gitea-Actions (push) Failing after 10s
将应用的数据库用户名从root更改为mirai,以符合专用的数据库配置设置。此次更改对于与特定环境要求保持一致是必要的。
```
|
2024-09-18 19:04:27 +08:00 |
|
Grand-cocoa
|
fc65e875e2
|
和数据库提醒服务优化
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 5s
-引入`async-http-client`和`fix-protocol`依赖项以提升网络请求处理和协议兼容性。
- 在`BotConfiguration`中切换到`ANDROID_PAD`协议以改善性能。
- 在`DrinkWaterUser`实体中使用`TableId`注解并允许`botId`为`null`,以更好地与数据库交互。
- 在`ReminderService`和其他服务中使用`KtQueryWrapper`替代`LambdaQueryWrapper`,简化查询构建。
- 通过在`MiraiBotApplication`中预加载协议版本,加速启动时间。
- 更新`application-dev.yml`和`application-prod.yml`配置文件,引入密码认证。- 新增`android_pad.json`和`KFCFactory.json`配置,支持新协议。
这些更改提高了数据库操作的便捷性,增强了网络请求的处理能力,并通过协议优化改善了整体性能。
|
2024-09-18 17:12:51 +08:00 |
|
Grand-cocoa
|
6b18dd55a7
|
新功能:实现定时喝水提醒服务
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 5s
添加了一个定时任务,用于每两小时提醒用户喝水。同时,引入了开启和关闭该提醒服务的功能,用户可以通过消息与机器人互动来管理提醒服务。此更新涉及数据库映射、服务类和定时任务的创建。
|
2024-09-18 14:41:19 +08:00 |
|
Grand-cocoa
|
90307e1ee9
|
refactor(miraibot): 更新注解和服务配置
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"名称。
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
|
76d6f849a4
|
refactor(bot-config): 重构Bot配置并更新初始化
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 5s
- 重构BotConfig类并移动至新的package:info.alinadace.miraibot.configuration。
- 从BotConfiguration.kt中移除未使用的imports和函数。
- 在Initialization.kt中添加PostConstruct注解用于服务初始化。
- 更新ExampleService.kt以使用新的配置package。
- 通过更改名称为'functionMap'并使用GlobalEventChannel优化事件处理。
此重构改进了代码结构,更新了配置的初始化,并增强了事件处理机制。
|
2024-09-04 20:03:47 +08:00 |
|
Grand-cocoa
|
a7aa2bda2b
|
refactor(miraibot): 更新服务和配置,优化bot初始化- 重构BotConfiguration以使用延迟初始化。
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 10s
- 直接返回Bot实例以简化代码。
- 更新ExampleService以处理FriendMessageEvent。
- 修正Service.kt中的泛型声明格式。
- 在BotConfig中添加新的ADMIN_ID属性并进行初始化检查。
- 调整工作流文件格式并优化结构。
通过这些更改,我们优化了bot的初始化过程,更新了事件处理服务,使代码更加简洁高效。此外,工作流文件的调整增强了可读性和结构清晰度。
|
2024-09-04 18:32:06 +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 |
|