mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-11-17 12:12:16 -05:00
fix replay command oopsie unrelated
This commit is contained in:
@@ -91,9 +91,9 @@ function createWebReplayTextCommand(socket, sendSystemMessage, replayApi) {
|
|||||||
|
|
||||||
const requester = buildRequesterLabel(socket);
|
const requester = buildRequesterLabel(socket);
|
||||||
const jobId = buildReplayJobId('web-chat');
|
const jobId = buildReplayJobId('web-chat');
|
||||||
const attempt = replayApi.tryTriggerReplay({ by: { source: 'web-chat', requester } });
|
const attempt = replayApi.tryTriggerReplay({ jobId, by: { source: 'web-chat', requester } });
|
||||||
if (!attempt.ok) {
|
if (!attempt.ok) {
|
||||||
await message.reply({ content: `Replay denied: cooldown active. Try again in ${Math.ceil(attempt.remainingMs / 1000)}s.` });
|
await message.reply({ content: `Replay denied: ${attempt.error}` });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user