Skip to content

Commit

Permalink
Merge pull request #1033 from azep-ninja/telegram-team-feature
Browse files Browse the repository at this point in the history
feat: Add Telegram Team features
  • Loading branch information
monilpat authored Dec 14, 2024
2 parents b350f3c + 298ad05 commit 7ad8141
Show file tree
Hide file tree
Showing 4 changed files with 602 additions and 1 deletion.
38 changes: 38 additions & 0 deletions packages/client-telegram/src/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
export const MESSAGE_CONSTANTS = {
MAX_MESSAGES: 50,
RECENT_MESSAGE_COUNT: 5,
CHAT_HISTORY_COUNT: 10,
DEFAULT_SIMILARITY_THRESHOLD: 0.6,
DEFAULT_SIMILARITY_THRESHOLD_FOLLOW_UPS: 0.4,
INTEREST_DECAY_TIME: 5 * 60 * 1000, // 5 minutes
PARTIAL_INTEREST_DECAY: 3 * 60 * 1000, // 3 minutes
} as const;

export const TIMING_CONSTANTS = {
TEAM_MEMBER_DELAY: 1500, // 1.5 seconds
TEAM_MEMBER_DELAY_MIN: 1000, // 1 second
TEAM_MEMBER_DELAY_MAX: 3000, // 3 seconds
LEADER_DELAY_MIN: 2000, // 2 seconds
LEADER_DELAY_MAX: 4000 // 4 seconds
} as const;

export const RESPONSE_CHANCES = {
AFTER_LEADER: 0.5, // 50% chance to respond after leader
} as const;

export const TEAM_COORDINATION = {
KEYWORDS: [
'team',
'everyone',
'all agents',
'team update',
'gm team',
'hello team',
'hey team',
'hi team',
'morning team',
'evening team',
'night team',
'update team',
]
} as const;
Loading

0 comments on commit 7ad8141

Please sign in to comment.