mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🐞 fix: 修复删除R信任用户
无法使用问题
This commit is contained in:
parent
796598df50
commit
927b4a69fe
@ -212,9 +212,12 @@ export class switchers extends plugin {
|
||||
trustUserId = (await e.getReply()).user_id;
|
||||
} else {
|
||||
// 如果不是回复就看发送内容
|
||||
trustUserId = e.msg.replace("#设置R信任用户", "");
|
||||
trustUserId = e.msg.replace("#删除R信任用户", "");
|
||||
}
|
||||
let whiteList = await redisExistAndGetKey(REDOS_YUNZAI_WHITELIST);
|
||||
// 校准不是string的用户
|
||||
let whiteList = (await redisExistAndGetKey(REDOS_YUNZAI_WHITELIST)).map(item =>
|
||||
typeof item === 'string' ? item : item.toString()
|
||||
);
|
||||
if (whiteList == null) {
|
||||
e.reply("R插件当前没有任何信任用户:");
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user