mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🌟 feat: 添加主人不用设置权限
This commit is contained in:
parent
b5a777e499
commit
b9bb9bd934
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user