koishi-plugin-satori-ai 1.2.7 → 1.2.8
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 +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1679,7 +1679,7 @@ ${payload}`);
|
|
|
1679
1679
|
async handleUserLevel(session, options) {
|
|
1680
1680
|
const userId = options.id || session.userId;
|
|
1681
1681
|
const user = await ensureUserExists(this.ctx, userId, session.username);
|
|
1682
|
-
const level = options.level || user.userlevel > 1 ? user.userlevel : 1;
|
|
1682
|
+
const level = options.level || (user.userlevel > 1 ? user.userlevel : 1);
|
|
1683
1683
|
const enableUserKey = user?.items?.["地灵殿通行证"]?.description && user.items["地灵殿通行证"].description == "on";
|
|
1684
1684
|
if (enableUserKey || level > 3)
|
|
1685
1685
|
await this.portraitManager.generatePortrait(session, user, this.apiClient);
|