feat(bot): implement /app and /keyboard commands, add dashboard links

This commit is contained in:
2026-03-15 02:13:32 +04:00
parent 531e52b238
commit 3c53ab9e1a
6 changed files with 159 additions and 11 deletions

View File

@@ -13,7 +13,9 @@ export const enBotTranslations: BotTranslationCatalog = {
join_link: 'Get a shareable link for new members to join',
payment_add: 'Record your rent or utilities payment',
pending_members: 'List pending household join requests',
approve_member: 'Approve a pending household member'
approve_member: 'Approve a pending household member',
app: 'Open the Kojori mini app',
keyboard: 'Toggle persistent dashboard button'
},
help: {
intro: 'Household bot is live.',
@@ -121,6 +123,11 @@ export const enBotTranslations: BotTranslationCatalog = {
joinLinkReady: (link, householdName) =>
`Join link for ${householdName}:\n${link}\n\nAnyone with this link can join the household. Share it carefully.`
},
keyboard: {
dashboardButton: '🏡 Dashboard',
enabled: 'Persistent dashboard button enabled.',
disabled: 'Persistent dashboard button disabled.'
},
anonymousFeedback: {
title: 'Anonymous household note',
cancelButton: 'Cancel',
@@ -236,7 +243,7 @@ export const enBotTranslations: BotTranslationCatalog = {
reminders: {
utilities: (period) => `Utilities reminder for ${period}`,
rentWarning: (period) => `Rent reminder for ${period}: payment is coming up soon.`,
rentDue: (period) => `Rent due reminder for ${period}: please settle payment today.`,
rentDue: (period) => `Rent is due for period ${period}. Request sent to the reminders topic.`,
guidedEntryButton: 'Guided entry',
copyTemplateButton: 'Copy template',
openDashboardButton: 'Open dashboard',