Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

340 B
Raw Blame
import type { ServerText } from "../../shared/server-text.ts";
import { noticeFailure } from "../chat-notices.ts";

export function codexActionFailure(message: string, mayHaveRun: boolean, text?: ServerText) {
  return mayHaveRun ? noticeFailure("chat.notice.codexActionMayHaveRun", { message }) : { message, ...(text ? { text } : {}) };
}