Skip to content

Commit

Permalink
fix: 延时只在需要签到的情况下
Browse files Browse the repository at this point in the history
  • Loading branch information
enpitsuLin committed Aug 12, 2024
1 parent 68b1cf3 commit f934983
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,14 @@ export async function doAttendanceForAccount(token: string, options: Options) {
const msg = `${(Number(character.channelMasterId) - 1) ? 'B 服' : '官服'}角色 ${getPrivacyName(character.nickName)} 签到失败${`, 错误消息: ${data.message}\n\n\`\`\`json\n${JSON.stringify(data, null, 2)}\n\`\`\``}`
combineMessage(msg, true)
}

// 多个角色之间的延时
await setTimeout(3000)
}
else {
combineMessage(`${(Number(character.channelMasterId) - 1) ? 'B 服' : '官服'}角色 ${getPrivacyName(character.nickName)} 今天已经签到过了`)
}

// 多个角色之间的延时
await setTimeout(3000)
}))
if (successAttendance !== 0)
combineMessage(`成功签到${successAttendance}个角色`)
Expand Down

0 comments on commit f934983

Please sign in to comment.