node-karin 1.3.12 → 1.3.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # 更新日志
2
2
 
3
+ ## [1.3.13](https://github.com/KarinJS/Karin/compare/core-v1.3.12...core-v1.3.13) (2025-02-16)
4
+
5
+
6
+ ### 🐛 Bug Fixes
7
+
8
+ * console adapter基本接口 ([42c421d](https://github.com/KarinJS/Karin/commit/42c421d295c6666c14f75e2f4a2113fdd1f66fd7))
9
+ * console adapter基本接口 ([041031d](https://github.com/KarinJS/Karin/commit/041031d2a8093a5ab33aadd5e5aba918f294342f))
10
+
3
11
  ## [1.3.12](https://github.com/KarinJS/Karin/compare/core-v1.3.11...core-v1.3.12) (2025-02-15)
4
12
 
5
13
 
package/dist/index.js CHANGED
@@ -17552,6 +17552,91 @@ var init_input2 = __esm({
17552
17552
  }
17553
17553
  return `http://127.0.0.1:${process.env.HTTP_PORT}/api/v1/console/${name}${ext}?token=${cfg.console.token}`;
17554
17554
  }
17555
+ async getAvatarUrl(userId, size) {
17556
+ if (userId === botID) {
17557
+ return process.env.ADAPTER_CONSOLE_AVATAR || "https://p.qlogo.cn/gh/967068507/967068507/0";
17558
+ }
17559
+ return "";
17560
+ }
17561
+ async getGroupAvatarUrl(groupId, size, history) {
17562
+ return "https://p.qlogo.cn/gh/967068507/967068507/0";
17563
+ }
17564
+ async recallMsg(contact3, messageId) {
17565
+ logger.info(`[recallMsg] ${messageId}`);
17566
+ return true;
17567
+ }
17568
+ async sendLike(targetId, count3) {
17569
+ logger.info(`[sendLike] ${targetId} ${count3}`);
17570
+ return true;
17571
+ }
17572
+ async groupKickMember(groupId, targetId, rejectAddRequest, kickReason) {
17573
+ logger.info(`[groupKickMember] ${groupId} ${targetId} ${rejectAddRequest} ${kickReason}`);
17574
+ return true;
17575
+ }
17576
+ async setGroupMute(groupId, targetId, duration) {
17577
+ logger.info(`[setGroupMute] ${groupId} ${targetId} ${duration}`);
17578
+ return true;
17579
+ }
17580
+ async setGroupAllMute(groupId, isBan) {
17581
+ logger.info(`[setGroupAllMute] ${groupId} ${isBan}`);
17582
+ return true;
17583
+ }
17584
+ async setGroupAdmin(groupId, targetId, isAdmin) {
17585
+ logger.info(`[setGroupAdmin] ${groupId} ${targetId} ${isAdmin}`);
17586
+ return true;
17587
+ }
17588
+ async setGroupMemberCard(groupId, targetId, card) {
17589
+ logger.info(`[setGroupMemberCard] ${groupId} ${targetId} ${card}`);
17590
+ return true;
17591
+ }
17592
+ async setGroupName(groupId, groupName) {
17593
+ logger.info(`[setGroupName] ${groupId} ${groupName}`);
17594
+ return true;
17595
+ }
17596
+ async setGroupQuit(groupId, isDismiss) {
17597
+ logger.info(`[setGroupQuit] ${groupId} ${isDismiss}`);
17598
+ return true;
17599
+ }
17600
+ async setGroupMemberTitle(groupId, targetId, title) {
17601
+ logger.info(`[setGroupMemberTitle] ${groupId} ${targetId} ${title}`);
17602
+ return true;
17603
+ }
17604
+ async getFriendList(refresh) {
17605
+ logger.info(`[getFriendList] ${refresh}`);
17606
+ return [];
17607
+ }
17608
+ async getGroupList(refresh) {
17609
+ logger.info(`[getGroupList] ${refresh}`);
17610
+ return [];
17611
+ }
17612
+ async getGroupMemberList(groupId, refresh) {
17613
+ logger.info(`[getGroupMemberList] ${groupId} ${refresh}`);
17614
+ return [];
17615
+ }
17616
+ async getGroupHonor(groupId) {
17617
+ logger.info(`[getGroupHonor] ${groupId}`);
17618
+ return [];
17619
+ }
17620
+ async setFriendApplyResult(requestId, isApprove, remark) {
17621
+ logger.info(`[setFriendApplyResult] ${requestId} ${isApprove} ${remark}`);
17622
+ return true;
17623
+ }
17624
+ async setGroupApplyResult(requestId, isApprove, denyReason) {
17625
+ logger.info(`[setGroupApplyResult] ${requestId} ${isApprove} ${denyReason}`);
17626
+ return true;
17627
+ }
17628
+ async setInvitedJoinGroupResult(requestId, isApprove) {
17629
+ logger.info(`[setInvitedJoinGroupResult] ${requestId} ${isApprove}`);
17630
+ return true;
17631
+ }
17632
+ async setMsgReaction(contact3, messageId, faceId, isSet) {
17633
+ logger.info(`[setMsgReaction] ${contact3} ${messageId} ${faceId} ${isSet}`);
17634
+ return true;
17635
+ }
17636
+ async uploadFile(contact3, file, name, folder) {
17637
+ logger.info(`[uploadFile] ${contact3} ${file} ${name} ${folder}`);
17638
+ return true;
17639
+ }
17555
17640
  };
17556
17641
  adapter3 = new AdapterConsole();
17557
17642
  registerBot("other", adapter3);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-karin",
3
- "version": "1.3.12",
3
+ "version": "1.3.13",
4
4
  "description": "Lightweight, efficient, concise, and stable robot framework.",
5
5
  "keywords": [
6
6
  "node",