From 7915ab327e78ec36b16ec985c947a240e7a4dd18 Mon Sep 17 00:00:00 2001 From: Narasimha-sc <166327228+Narasimha-sc@users.noreply.github.com> Date: Fri, 17 Apr 2026 12:29:20 +0000 Subject: [PATCH] support-bot: /team message when grok present --- apps/simplex-support-bot/src/bot.ts | 3 ++- apps/simplex-support-bot/src/messages.ts | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/simplex-support-bot/src/bot.ts b/apps/simplex-support-bot/src/bot.ts index f5645f7467..134693a534 100644 --- a/apps/simplex-support-bot/src/bot.ts +++ b/apps/simplex-support-bot/src/bot.ts @@ -691,7 +691,8 @@ export class SupportBot { } } - await this.sendToGroup(groupId, teamAddedMessage(this.config.timezone)) + const {grokMember} = await this.cards.getGroupComposition(groupId) + await this.sendToGroup(groupId, teamAddedMessage(this.config.timezone, !!grokMember)) } // --- Team group commands --- diff --git a/apps/simplex-support-bot/src/messages.ts b/apps/simplex-support-bot/src/messages.ts index fca27d4395..40005dad6b 100644 --- a/apps/simplex-support-bot/src/messages.ts +++ b/apps/simplex-support-bot/src/messages.ts @@ -16,9 +16,12 @@ Send /team to switch back.` export const grokActivatedMessage = `*You chatting with Grok* - use any language.` -export function teamAddedMessage(timezone: string): string { +export function teamAddedMessage(timezone: string, grokPresent: boolean): string { const hours = isWeekend(timezone) ? "48" : "24" - return `A team member has been added and will reply within ${hours} hours. You can keep describing your issue - they will see the full conversation.` + const base = `We will reply within ${hours} hours.` + if (!grokPresent) return base + return `${base} +Grok will be answering your questions until then.` } export const teamAlreadyInvitedMessage = "A team member has already been invited to this conversation and will reply when available."