koishi-plugin-bcjh-uidtransfer 0.0.4 → 0.0.5
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/lib/index.js +8 -3
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -53,12 +53,17 @@ function apply(ctx, config) {
|
|
|
53
53
|
}
|
|
54
54
|
const isAdmin = config.adminID.includes(session.userId);
|
|
55
55
|
const successMsg = isAdmin ? "获取管理员信息成功!" : "获取用户信息成功!";
|
|
56
|
-
const
|
|
56
|
+
const isPrivate = !guildId;
|
|
57
|
+
let text = `${successMsg}
|
|
57
58
|
[uid] ${uid}
|
|
58
|
-
[username] ${username}
|
|
59
59
|
[userID] ${userId}
|
|
60
60
|
[频道ID] ${channelId || "-"}
|
|
61
|
-
[群组ID] ${guildId || "-"}
|
|
61
|
+
[群组ID] ${guildId || "-"}`;
|
|
62
|
+
if (!isPrivate) {
|
|
63
|
+
text += `
|
|
64
|
+
[用户名] ${username}`;
|
|
65
|
+
}
|
|
66
|
+
text += `
|
|
62
67
|
[平台] ${session.platform || "-"}
|
|
63
68
|
[持有${config.monetaryName}] ${monetary}`;
|
|
64
69
|
let message = "";
|