Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions apps/xiuxian.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ export class xiuxian extends plugin {//修炼
}
const json = JSON.parse(fs.readFileSync(dirpath + "/" + filename));//读取文件
if (!json.hasOwnProperty(user_id)||json[user_id].level==0) {//如果文件夹不存在
if(isqbot.trssbtnqbot(id) === true){
if(user_id.length>30){
return e.reply([segment.at(e.user_id),"您还是凡人,请通过#修炼和#突破开启你的仙途",btn]);
}
return e.reply([segment.at(e.user_id),'您还是凡人,请通过#修炼和#突破开启你的仙途']);
Expand Down Expand Up @@ -398,9 +398,9 @@ export class xiuxian extends plugin {//修炼
}
if (cdtime) {
if(user_id.length>30){
return await e.reply([segment.at(e.user_id),`\n用户:${json[user_id].id}\n对不起,修炼失败,还有${cdtime}秒cd`,btn])
return await e.reply([segment.at(e.user_id),`\n对不起,修炼失败,还有${cdtime}秒cd`,btn])
}
return await e.reply(segment.at(e.user_id),`\n用户:${json[user_id].id}\n对不起,修炼失败,还有${cdtime}秒cd`)
return await e.reply(segment.at(e.user_id),`\n对不起,修炼失败,还有${cdtime}秒cd`)
}
await this.xxsetCd(cdtime_xiuxian);
if (!fs.existsSync(dirpath)) {//如果文件夹不存在
Expand Down Expand Up @@ -441,7 +441,7 @@ export class xiuxian extends plugin {//修炼
}
else {
json[user_id].experience -= 3
if(isqbot.trssbtnqbot(id) === true) e.reply([segment.at(user_id),
if(user_id.length>30) e.reply([segment.at(user_id),
`\n用户:${json[user_id].id}\n服用失败,由于大量丹毒你损失了3点灵力!\n你的id:${json[user_id].id},\n你的灵力为:${json[user_id].experience}\n你的境界为${json[user_id].levelname}`,btn]);
else e.reply([segment.at(user_id),
`\n用户:${json[user_id].id}\n服用失败,由于大量丹毒你损失了3点灵力!\n你的id:${json[user_id].id},\n你的灵力为:${json[user_id].experience}\n你的境界为${json[user_id].levelname}`]);
Expand Down Expand Up @@ -499,9 +499,9 @@ export class xiuxian extends plugin {//修炼
}
if (cdtime){
if(user_id.length>30){
return await e.reply([segment.at(e.user_id),`\n用户:${json[user_id].id}\n对不起,突破失败,还有${cdtime}秒cd`,btn])
return await e.reply([segment.at(e.user_id),`\n对不起,突破失败,还有${cdtime}秒cd`,btn])
}
return await e.reply([segment.at(e.user_id),`\n用户:${json[user_id].id}\n对不起,突破失败,还有${cdtime}秒cd`])
return await e.reply([segment.at(e.user_id),`\n对不起,突破失败,还有${cdtime}秒cd`])
}
await this.brsetCd(cdtime_break);
if (!fs.existsSync(dirpath)) {//如果文件夹不存在
Expand Down