mirror of
https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git
synced 2024-12-22 11:00:51 +08:00
fix:权限修正
This commit is contained in:
parent
9afdd7858c
commit
94c84da957
12
apps/sign.js
12
apps/sign.js
@ -43,7 +43,19 @@ export async function cloudSign(e){
|
||||
await replyMsg(e, res.message);
|
||||
return true;
|
||||
}
|
||||
const checkAuth = async function (e) {
|
||||
if (!e.isMaster) {
|
||||
e.reply(`只有主人才能命令我哦~
|
||||
(*/ω\*)`)
|
||||
return false
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
export async function signTask(e){
|
||||
if (!await checkAuth(e)) {
|
||||
return true;
|
||||
}
|
||||
let user = new User(e);
|
||||
let task=e?.msg?.includes("米游币")?'bbs':e?.msg?.includes("云原神")?'cloud':e?.msg?.includes("米社")?'mys':''
|
||||
if(!task){
|
||||
|
Loading…
Reference in New Issue
Block a user