koishi-plugin-prism-neo 0.0.12 → 0.0.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/lib/index.js +2 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -305,7 +305,7 @@ async function handleLoginCmd(context, user) {
|
|
|
305
305
|
await login(context, userId);
|
|
306
306
|
const pwd = await getLock(context, userId);
|
|
307
307
|
if (user) {
|
|
308
|
-
return `✅ 已为用户 ${getUserName(context.session, userId)} 入场,该用户的门锁密码是: ${pwd.password}
|
|
308
|
+
return `✅ 已为用户 ${await getUserName(context.session, userId)} 入场,该用户的门锁密码是: ${pwd.password}
|
|
309
309
|
注意! 门锁密码有效期为三分钟`;
|
|
310
310
|
}
|
|
311
311
|
return `✅ 入场成功,你的门锁密码是: ${pwd.password}
|
|
@@ -320,7 +320,7 @@ async function handleLogoutCmd(context, user) {
|
|
|
320
320
|
if (pendingLogout && now - pendingLogout < 60 * 1e3) {
|
|
321
321
|
kv.delete(targetUserId);
|
|
322
322
|
const res = await logout(context, targetUserId);
|
|
323
|
-
const messagePrefix = user ? `✅ 已为用户 ${getUserName(context.session, targetUserId)} 退场` : "✅ 退场成功";
|
|
323
|
+
const messagePrefix = user ? `✅ 已为用户 ${await getUserName(context.session, targetUserId)} 退场` : "✅ 退场成功";
|
|
324
324
|
return [
|
|
325
325
|
messagePrefix,
|
|
326
326
|
`入场时间: ${formatDateTime(res.session.createdAt)}`,
|