🌟 feat: 添加主人不用设置权限

This commit is contained in:
zhiyu1998 2024-09-30 11:09:19 +08:00
parent b5a777e499
commit b9bb9bd934

View File

@ -2443,6 +2443,10 @@ export class tools extends plugin {
* @returns {Promise<boolean>}
*/
async isTrustUser(userId) {
// 如果当前用户是机器人主人
if (this.e.isMaster) {
return true;
}
// 如果不存在则返回
if (!(await redisExistKey(REDIS_YUNZAI_WHITELIST))) {
return false;