|
b969bb29b2
|
Merge branch 'master' into add-MultiProperties
|
2020-05-06 10:18:00 +08:00 |
|
|
edade24883
|
[Change] Issue #2 调整Logger Name以统一Logger Name格式;
|
2020-05-06 09:34:28 +08:00 |
|
|
34f57404ca
|
[Update] 重构Setting Properties, 使其支持分群配置;
|
2020-05-06 00:57:48 +08:00 |
|
|
99b6e14ff7
|
[Change] RandomIntervalSendTimer 调整日志输出内容;
|
2020-05-05 17:09:45 +08:00 |
|
|
49a33d4078
|
[Add] MessageEventExecutionDebugger 添加对消息处理的调试器Enum;
[Add] BotEventHandler 添加对 MessageEventExecutionDebugger 的支持;
[Add] VirtualLoadMessageEvent 增加 toVirtualLoadMessageEvent(MessageEvent) 方法;
|
2020-05-05 01:27:10 +08:00 |
|
|
cd1d2316ee
|
[Add] BotEventHandler 添加executeMessageEvent(MessageEvent)方法;
[Change] BotEventHandler 将BotEventHandler.executor设为private;
[Change] MiraiMain, CQPluginMain, RankingUpdateTimer 适配BotEventHandler的调整
|
2020-05-04 23:06:07 +08:00 |
|
|
cf08353ed9
|
[Change] BotEventHandler 调整事件处理线程池的线程数(min: 4, Max: 32);
|
2020-05-04 22:52:47 +08:00 |
|
|
bef6a684b9
|
[Change] BotEventHandler 调整事件处理线程池的线程数;
|
2020-05-04 22:46:06 +08:00 |
|
|
40c5284be2
|
[Change] Dockerfile.sample 调整构建指令顺序以充分利用构建缓存;
[Fix] Main 修复SystemProperties设置null抛出NPE的问题;
|
2020-05-04 17:07:39 +08:00 |
|
|
fe213deecb
|
[Change] Main 调整参数的接收形式;
[Fix] Dockerfile.sample 修复Java应用无法接收stop命令发送信号的问题;
[Change] RankingUpdateTimer 调整更新投递形式, 将同步更新调整为异步更新;
[Change] BotEventHandler 实装TimeLimitThreadPoolExecutor;
|
2020-05-04 02:07:46 +08:00 |
|
|
f279d99fda
|
[Add] TimeLimitThreadPoolExecutor 增加一个带有执行时间限制的线程池及对应单元测试类;
|
2020-05-04 02:04:59 +08:00 |
|
|
a09aef5be2
|
[Delete] 删除已完成或已经没有存在意义的TODO;
|
2020-05-02 10:40:11 +08:00 |
|
|
84b544cea9
|
[Change] Main 调整日志输出级别, 补充日志输出内容;
[Change] Dockerfile.sample 调整镜像内应用运行路径;
|
2020-05-01 22:28:15 +08:00 |
|
|
2f492f5b03
|
[Add] log4j2.xml, log4j2-test.xml 添加允许指定日志存储目录的功能(sys:cgj.logsPath);
|
2020-05-01 13:19:08 +08:00 |
|
|
15af939c3f
|
[Fix] PixivDownload 修复因排行榜总量的不确定导致排行榜获取异常的问题;
[Change] BotEventHandler 调整事件处理完成后的日志输出形式;
|
2020-04-30 19:08:34 +08:00 |
|
|
a28cb142b4
|
[Change] 调整数据存储的路径设置及存储目录参数名;
|
2020-04-30 17:51:57 +08:00 |
|
|
fba6d3532c
|
[Delete] 删除不再使用的类和方法;
[Update] 优化Javadoc并设置编译注解, 优化代码;
[Change] 调整部分日志的输出级别;
[Change] RedisPoolCacheStore clear方法将根据返回信息确定是否清空成功;
[Change] Dockerfile.sample 调整镜像构建步骤;
|
2020-04-30 02:23:31 +08:00 |
|
|
0075446412
|
[Fix] MiraiMessageSender 修复因BotCode-Image中flashImage参数不存在导致NPE的问题;
|
2020-04-30 01:54:27 +08:00 |
|
|
7f83b16118
|
[Add] Main 添加日志输出内容;
|
2020-04-29 23:44:38 +08:00 |
|
|
22a113ef38
|
[Change] 调整CGJ包结构, 将机器人平台相关类单独存放在framework包内;
|
2020-04-28 23:15:55 +08:00 |
|
|
6824b12e8f
|
[Add] MiraiMessageSender 增加对闪照的支持;
|
2020-04-28 10:57:17 +08:00 |
|
|
1c556c5b94
|
[Update] MiraiMessageSender 对已上传的图片所属ImageId设置10天有效期;
|
2020-04-28 00:32:40 +08:00 |
|
|
dbc9f4c90b
|
[Fix] BotCommandProcess 修复了通过缓存获取排行榜时排行榜从第2名开始读取的bug;
[Update] MiraiMain, MiraiMessageSender, MiraiMessageEvent 更新Mirai框架(0.32.0 -> 0.39.4)并适配框架新版本的变动;
|
2020-04-28 00:19:24 +08:00 |
|
|
d3c1975722
|
[Fix] PixivURL 修复由于智障修复导致的bug;
|
2020-04-27 23:26:22 +08:00 |
|
|
ca479ef1af
|
[Change] log4j2.xml 调整SYSTEM_OUT控制台输出配置;
|
2020-04-27 14:06:33 +08:00 |
|
|
c2c49d2355
|
[Add] PixivDownload 增加对排行榜获取失败抛出异常的信息;
[Fix] PixivURL.RankingContentType 修复isSupportedMode判断错误的问题;
[Fix] RankingUpdateTimer 调整每日更新时间(12:10 -> 12:30)以尝试修复排行榜更新时机过早的问题;
|
2020-04-27 12:32:25 +08:00 |
|
|
22e74e8cd5
|
[Add] PixivIllustType 增加了对IllustInfo的解析;
|
2020-04-26 15:53:39 +08:00 |
|
|
d549c5674d
|
[Update] BotCommandProcess 补充Javadoc;
[Change] PixivUgoiraBuilder 调整日志输出级别;
|
2020-04-26 15:45:23 +08:00 |
|
|
c6952de84c
|
[Add] log4j2-test.xml 增加测试运行时的日志配置文件;
[Add] pom.xml 设置package goal的文件排除项, 将测试运行所使用的日志配置文件(log4j2-test.xml)排除;
|
2020-04-25 17:07:13 +08:00 |
|
|
410d6c0828
|
[Add] BotAdminCommandProcess, PixivDownload 增加日志输出内容;
[Change] RandomIntervalSendTimer 对AutoSender增加异常捕获以减少对其他Timer执行的影响;
|
2020-04-25 17:02:01 +08:00 |
|
|
aaa1bc932b
|
[Add] RandomRankingArtworksSender 增加参数;
[Add] BotAdminCommandProcess 增加更多可自定义的参数项, 增加json配置项常量;
|
2020-04-25 02:29:38 +08:00 |
|
|
a1e54e70d9
|
[Change] PixivURL 调整RankingContentType.ALL名称(ALL -> TYPE_ALL);
[Add] PixivDownload 增加调试日志信息;
[Fix] RandomIntervalSendTimer 修复cancel方法无法停止定时器的问题;
|
2020-04-24 23:54:26 +08:00 |
|
|
16522155e1
|
[Add] 通过增加参数信息来为命令方法提供来源群和来源QQ;
|
2020-04-24 23:52:05 +08:00 |
|
|
5f796f7da0
|
[Update] BotCommandProcess 更新帮助信息, 补充Javadoc, 调整命令名;
[Change] RandomIntervalSendTimer 将下一执行时间从分钟调整为具体时间;
[Change] MessageEvent toString方法调整为输出具体实现类名而不是"MessageEvent";
|
2020-04-24 10:45:03 +08:00 |
|
|
5a52dd9208
|
[Add] 初步添加成人内容检测器, 尚未使用;
|
2020-04-24 01:42:47 +08:00 |
|
|
b53aafa81b
|
[Fix] RandomRankingArtworksSender 修复排行榜选取错误的问题;
[Add] RandomRankingArtworksSender 增加对rankingStart, rankingStop的范围选取检查;
[Update] RandomRankingArtworksSender 更新Javadoc;
|
2020-04-24 01:41:53 +08:00 |
|
|
0eadefa74f
|
[Add] BotAdminCommandProcess 完善作品报告管理功能;
[Add] BotCommandProcess 对Report增加报告时间;
|
2020-04-24 01:24:03 +08:00 |
|
|
4afa414725
|
[Add] CacheStore 增加keys, remove方法;
[Update] HotDataCacheStore, LocalHashCacheStore, RedisPoolCacheStore 适配CacheStore的更改;
|
2020-04-24 01:23:11 +08:00 |
|
|
0f202cb076
|
[Update] RedisPoolCacheStore 优化代码;
|
2020-04-24 00:42:41 +08:00 |
|
|
1f3d99ac10
|
[Add] BotCommandProcess 增加作品报告功能, 以允许用户主动报告不当作品;
[Update] 适配报告功能;
|
2020-04-24 00:34:50 +08:00 |
|
|
d33f4028d1
|
[Fix] BotEventHandler 修复无命令帮助信息无法发送的问题(前缀识别失效);
|
2020-04-24 00:33:51 +08:00 |
|
|
4020bbfea8
|
[Change] BotAdminCommandProcess 调整方法名, 增加提示信息;
|
2020-04-23 23:18:41 +08:00 |
|
|
19605a9401
|
[Add] BotEventHandler 增加启动预处理方法;
[Add] BotAdminCommandProcess 增加推送功能相关管理命令;
[Change] RandomIntervalSendTimer 调整Timer管理过程;
[Change] BotCommandProcess ranking方法对参数错误的处理调整为返回错误信息;
[Fix] RankingUpdateTimer 修复参数错误的问题;
|
2020-04-23 16:23:06 +08:00 |
|
|
73ae9a268b
|
[Add] MessageSenderBuilder, MessageSenderFactory 增加用于创建MessageSender而又与平台无关的Builder, 初步增加对应Factory;
|
2020-04-21 22:43:24 +08:00 |
|
|
620c3785ad
|
[Change] MessageSender 调整包路径;
|
2020-04-21 22:33:20 +08:00 |
|
|
2df5513727
|
[Change] BotEventHandler 修改命令前缀以防止错误的触发;
|
2020-04-20 01:35:02 +08:00 |
|
|
8798633c2c
|
[Fix] BotCommandProcess 修复排行榜数据选取错误的问题;
|
2020-04-20 01:33:30 +08:00 |
|
|
9dfc20a525
|
[Add] AutoSender 增加自动发送器接口;
[Add] RandomIntervalSendTimer 增加随机延迟自动发送器;
[Add] RecommendArtworksSender 增加随机排行榜作品发送器;
[Change] PixivDownload 重新开发 getRanking 方法;
|
2020-04-20 01:32:11 +08:00 |
|
|
dd88f2acab
|
[Update] MiraiMessageSender 增加新构造器, 补充Javadoc;
|
2020-04-19 23:58:33 +08:00 |
|
|
36460e4c34
|
[Add] MiraiMain 增加正常关闭过程;
|
2020-04-19 13:03:10 +08:00 |
|
|
084be3970a
|
[Change] 将各MessageEvent的消息发送部分分离成单独的MessageSender, 将MessageEvent依赖于对应的MessageSender;
|
2020-04-19 12:23:02 +08:00 |
|
|
11005b0f6c
|
[Add] BotCode 增加 getCodePattern 方法以允许其他类获取BotCode所使用的正则匹配表达式;
|
2020-04-19 12:20:58 +08:00 |
|
|
970be847a0
|
[Change] RankingUpdateTimer 调整更新时间(12:30 -> 12:10);
[Change] RankingUpdateTimer 调整日志级别, 补充日志输出信息;
|
2020-04-19 12:16:03 +08:00 |
|
|
09fa1bd2e8
|
[Add] MessageSource 将MiraiMessageEvent的MessageSource分离成独立的类;
[Change] SpringCQMessageEvent, MiraiMessageEvent 适配新的更改;
|
2020-04-19 01:34:45 +08:00 |
|
|
ae27141fea
|
[Add] MessageSender 增加消息发送器接口;
[Change] MessageEvent 实现 MessageSender 接口;
|
2020-04-19 01:00:52 +08:00 |
|
|
b328def8f9
|
[Change] BotCommandProcess 将isNoSafe方法公开;
[Change] MiraiMessageEvent 将UploadImage方法公开;
[Add] MiraiMessageEvent 增加MessageSource枚举类;
|
2020-04-19 00:31:24 +08:00 |
|
|
dbfed874c0
|
[Add] VirtualLoadMessageEvent 增加假负载消息事件, 该事件在消息发送上将没有操作, 纯属执行命令;
[Change] RankingUpdateTimer 调整排行榜更新方式, 利用假负载消息触发一次完全执行;
|
2020-04-18 01:15:04 +08:00 |
|
|
f02b0e9e98
|
[Update] 补充Javadoc, 设置@SuppressWarning注解;
|
2020-04-18 01:13:01 +08:00 |
|
|
260cfe3dd0
|
[Delete] MessageEvent 删除可能会导致兼容性降低的未使用方法;
[Delete] MiraiMessageEvent, SpringCQMessageEvent 适配 MessageEvent 的更改;
|
2020-04-17 18:29:59 +08:00 |
|
|
c1427379c6
|
[Add] StringListRedisCacheStore 增加类型为String的RedisListCacheStore实现;
[Change] BotCommandProcess 更换pagesCache的缓存组件(RedisPoolCacheStore<List<String>> -> StringListRedisCacheStore);
|
2020-04-17 18:25:48 +08:00 |
|
|
2ec696b3cd
|
[Change] PreLoadDataComparator Attribute类属性attrName访问权修改(default -> public);
|
2020-04-17 17:46:01 +08:00 |
|
|
c8c6dbe4fd
|
[Update] 优化Logger名称;
[Update] 为 processMessage(MessageEvent) 方法增加 @SuppressWarnings("unused") 注解并补充Javadoc;
|
2020-04-17 17:20:37 +08:00 |
|
|
4dff477ded
|
[Change] log4j2.xml 调整Root Logger最低日志级别(Debug -> Info);
|
2020-04-17 15:54:13 +08:00 |
|
|
0ab5634ce3
|
[Update] MiraiMain 将登录密码形式由明文文本更改为Md5以加强机器人在服务端的安全性;
[Update] pom.xml 版本号升级(1.0-SNAPSHOT -> 2.1.0);
|
2020-04-17 15:52:58 +08:00 |
|
|
3e4b7f1145
|
[Update] BotCommandProcess 对IllustPreLoadData更换缓存组件(JsonRedisCacheStore -> HotDataCacheStore);
[Update] BotCommandProcess 补充Javadoc;
|
2020-04-17 15:19:09 +08:00 |
|
|
ac38e1b5cf
|
[Change] CacheObject, LocalHashCacheStore 合并类;
|
2020-04-16 23:48:59 +08:00 |
|
|
d8d4784c0f
|
[Update] HotDataCacheStore 补充Javadoc细节;
|
2020-04-16 22:49:15 +08:00 |
|
|
99cdfb7598
|
[Change] SpringCQMessageEvent 更新 getImageUrl 具体实现, 首选BotCode中url地址;
[Change] BotEventHandler 调整initial代码;
|
2020-04-16 20:38:04 +08:00 |
|
|
9f58e186d5
|
[Update] SpringCQMessageEvent 适配 getImageUrl 方法;
|
2020-04-16 20:20:29 +08:00 |
|
|
0e182be31c
|
[Add] MessageEvent 增加 getImageUrl 抽象方法, 增加对 toString 方法的重写;
[Update] MessageEvent 补充Javadoc;
[Update] MiraiMessageEvent 适配 getImageUrl 方法;
[Change] MiraiMessageEvent 优化缓存存取过程;
|
2020-04-16 19:55:48 +08:00 |
|
|
006352679a
|
[Change] ImageCacheHandler 将缓存键名从downloadLink更改为fileName;
[Change] PixivUgoiraBuilderTest 暂时设置单元测试忽略以关闭耗时的测试, 加快构建速度;
|
2020-04-16 17:12:24 +08:00 |
|
|
4304cfcef2
|
[Add] URLs 增加一个工具类;
|
2020-04-16 17:10:12 +08:00 |
|
|
5ad2a56ce2
|
[Add] BotCommandProcess 将 getImageById 中用于构造BotCode的代码分离到 getImageToBotCode 方法;
[Add] PreLoadDataComparator 增加新的比较器, 主要用于对Pixiv搜索结果的排序;
[Change] BotCommandProcess 重写 getImageById 方法以提高处理效率;
[Change] BotCommandProcess 将 search 方法对搜索结果的排序抽出到新的Comparator实现类(PreLoadDataComparator);
|
2020-04-16 16:51:25 +08:00 |
|
|
2af3c20a21
|
[Change] PixivDownload 调整日志输出内容和级别;
[Add] PixivDownload 增加 PixivDownload#getRanking(List<JsonObject>, int, int);
|
2020-04-16 11:01:52 +08:00 |
|
|
7468777b1d
|
[Change] Main, PixivUgoiraBuilder 调整日志输出;
|
2020-04-16 10:59:53 +08:00 |
|
|
b720f657d0
|
[Change] 将部分CacheStore对象的类型调整为CacheStore<>以保证DIP, 增加灵活性;
[Change] 将Ranking缓存调整为JsonObjectRedisListCacheStore, 减少不必要的缓存数据查询;
|
2020-04-16 10:59:18 +08:00 |
|
|
c0c9a2d299
|
[Add] 增加Redis List的支持, 可通过List存储缓存项;
[Add] 增加支持JsonObject类型的RedisListCacheStore;
|
2020-04-16 10:53:57 +08:00 |
|
|
66d3d0aa31
|
[Change] 适配PixivURL的修改(#ad1922bc);
[Add] 增加用于通过接口返回数据判别作品类型的PixivIllustType Enum类;
|
2020-04-15 21:54:30 +08:00 |
|
|
450705b540
|
[Add] BotEventHandler 增加对消息的日志记录;
[Delete] BotEventHandler 移除无用代码;
|
2020-04-15 15:13:00 +08:00 |
|
|
a26762d96b
|
[Change] 完成包路径调整;
[Change] 调整部分日志输出级别;
[Add] ranking 方法增加对过早日期的过滤, 以拦截非法请求;
[Change] globalProp 从 CQPluginMain 迁移到 BotCommandProcess;
[Update] 优化缓存失效时的数据存取过程;
[Fix] 修复 search 方法对结果进行likeCount排序遇到特殊JsonObject时抛出异常的问题;
[Update] getRankingInfoByCache 对因接口返回无效导致的空缓存增加浮动有效时间;
[Delete] getRankingInfoByCache 删除无用代码;
|
2020-04-15 15:09:14 +08:00 |
|
|
ad1922bc94
|
[Change] 优化 PixivURL#getPixivIllustInfoAPI 方法的参数形式;
[Add] 增加用于获取动图元数据的接口地址;
[Add] 将"ajax/user/{userId}/profile/all"接口加入到PixivURL;
[Add] 重命名"ajax/user/{userId}/profile/top"接口常量名(PIXIV_USER_ILLUST_LIST_URL -> PIXIV_USER_TOP_ILLUST_LIST_URL);
|
2020-04-15 14:57:11 +08:00 |
|
|
428bb1ae16
|
[Add] 增加Pixiv动图下载构建工具类 PixivUgoiraBuilder;
[Add] 增加针对 PixivUgoiraBuilder 的单元测试类;
|
2020-04-15 14:52:46 +08:00 |
|
|
6570889c1e
|
[Add] 增加对 BotCode 的单元测试类;
|
2020-04-15 14:51:46 +08:00 |
|
|
0d1c651ff4
|
[Add] 增加测试下的日志配置文件;
|
2020-04-15 14:51:13 +08:00 |
|
|
8a3c3f10c5
|
[Change] PixivURL 调整常量名;
|
2020-04-14 11:08:05 +08:00 |
|
|
b06702f367
|
[Add] PixivSearchBuilder 增加equals, hashCode, toString方法的覆写;
[Update] PixivSearchBuilderTest 补充测试项;
|
2020-04-14 11:05:53 +08:00 |
|
|
ee1f066ee4
|
[Add] 增加PixivLoginProxyServer的支持;
|
2020-04-14 11:02:49 +08:00 |
|
|
579049b943
|
[Update] HotDataCacheStore 增加对CacheStore新增加方法的兼容;
|
2020-04-14 10:41:13 +08:00 |
|
|
e6c0633a5e
|
[Add] 增加toString方法的覆写, 以提供快速输出对象详情的功能;
|
2020-04-14 10:39:17 +08:00 |
|
|
5a50977be5
|
[Delete] 移除PixivLoginProxyServer类;
[Add] 导入PixivLoginProxyServer依赖库;
|
2020-04-14 10:38:32 +08:00 |
|
|
c9c8db7de9
|
[Add] CacheStore 增加对列表缓存的部分支持;
[Update] LocalHashCacheStore, RedisPoolCacheStore增加对CacheStore新增加方法的兼容;
[Add] RedisPoolCacheStore 增加executeJedisCommand方法以向子类提供覆盖重写重点方法的能力;
|
2020-04-14 10:37:07 +08:00 |
|
|
e20f9d34c9
|
[Change] 调整包路径, 增加 loadGlobalProperties 命令以提供重载方式;
|
2020-04-11 12:50:27 +08:00 |
|
|
841a368767
|
[Change] PixivDownload 因日志系统升级, 重新调整日志等级;
|
2020-04-11 12:28:36 +08:00 |
|
|
bc6aaa49a0
|
[Add] BotCode 增加用于操作机器人功能代码的工具类;
[Add] BotEventHandler, MessageEvent 将CQPluginMain消息处理部分迁移至BotEventHandler;
[Add] SpringCQMessageEvent, MiraiMessageEvent 增加两个消息事件实现;
[Add] MiraiMain 增加对 Mirai 框架的支持;
[Add] Main 增加 Mirai 框架的支持;
|
2020-04-11 12:27:24 +08:00 |
|
|
7d843c3f77
|
[Change] 调整包路径;
[Change] 修改 CQPluginMain 功能, 将命令处理的具体细节迁移;
|
2020-04-11 12:18:43 +08:00 |
|
|
a0efc3c0af
|
[Add] 增加新的缓存库类(HotDataCacheStore, StringRedisCacheStore);
[Add] CacheStore 增加update(String, T, long)方法, 该方法将以Unix时间戳设置过期时间;
[Update] LocalHashCacheStore, RedisPoolCacheStore 适配CacheStore新方法;
[Delete] 删除 RedisCacheStore 类;
|
2020-04-11 12:13:55 +08:00 |
|
|
8375b81b17
|
[Change] 调整包路径;
[Add] RedisPoolCacheStore, JsonRedisCacheStore 增加可提供JedisPool对象的构造方法, 以实现Redis连接池共用;
|
2020-04-10 22:00:38 +08:00 |
|
|
9bf59da444
|
[Add] 增加 Mirai 框架依赖项, 升级日志系统(Log4j -> Log4j2);
[Update] 将Log4j配置文件替换为Log4j2配置文件;
|
2020-04-10 21:58:56 +08:00 |
|
|
900a4e14ec
|
[Delete] 删除目前暂不使用的类;
|
2020-04-10 21:57:19 +08:00 |
|
|
ce93c7372e
|
[Change] 调整 runUpdateTimer 命令为 runUpdateTask 并将命令移到 CQBotAdminProcess 中;
[Fix] 修复 RankingUpdateTimer 时间错误的问题;
|
2020-04-02 00:33:22 +08:00 |
|