INNER CODE UNIT · TypeScript
secs
Beever-AI/beever-atlas · bot/src/index.ts:273
const secs = Math.max(1, Math.ceil(decision.retryAfterMs / 1000));
try {
await postNotice(
thread,
message.author,
`You're asking a lot — give me a moment 🙂 (try again in ~${secs}s)`,
);
} catch (err) {
console.error("Failed to post rate-limit notice:", safeErrorMessage(err));
}
}
return false;
}
type ThreadForParticipants = {
id: string;
getParticipants(): Promise<Array<{ isMe: boolean; isBot?: boolean | "unknown" }>>;
};