support-bot: /team message when grok present

This commit is contained in:
Narasimha-sc
2026-04-17 12:29:20 +00:00
parent 7136e12c18
commit 7915ab327e
2 changed files with 7 additions and 3 deletions
+2 -1
View File
@@ -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 ---
+5 -2
View File
@@ -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."