Skip to content

Commit 8819ec0

Browse files
committed
Add discord team features.
1 parent 2f56f37 commit 8819ec0

File tree

4 files changed

+702
-50
lines changed

4 files changed

+702
-50
lines changed
+85
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
export const TEAM_COORDINATION = {
2+
KEYWORDS: [
3+
'team',
4+
'everyone',
5+
'all agents',
6+
'team update',
7+
'gm team',
8+
'hello team',
9+
'hey team',
10+
'hi team',
11+
'morning team',
12+
'evening team',
13+
'night team',
14+
'update team',
15+
]
16+
} as const;
17+
18+
export const MESSAGE_CONSTANTS = {
19+
MAX_MESSAGES: 10,
20+
RECENT_MESSAGE_COUNT: 3,
21+
CHAT_HISTORY_COUNT: 5,
22+
INTEREST_DECAY_TIME: 5 * 60 * 1000, // 5 minutes
23+
PARTIAL_INTEREST_DECAY: 3 * 60 * 1000, // 3 minutes
24+
DEFAULT_SIMILARITY_THRESHOLD: 0.3,
25+
DEFAULT_SIMILARITY_THRESHOLD_FOLLOW_UPS: 0.20,
26+
} as const;
27+
28+
export const MESSAGE_LENGTH_THRESHOLDS = {
29+
LOSE_INTEREST: 100,
30+
SHORT_MESSAGE: 10,
31+
VERY_SHORT_MESSAGE: 2,
32+
IGNORE_RESPONSE: 4,
33+
} as const;
34+
35+
export const TIMING_CONSTANTS = {
36+
LEADER_RESPONSE_TIMEOUT: 3000,
37+
TEAM_MEMBER_DELAY: 1500,
38+
LEADER_DELAY_MIN: 3000,
39+
LEADER_DELAY_MAX: 4000,
40+
TEAM_MEMBER_DELAY_MIN: 1000,
41+
TEAM_MEMBER_DELAY_MAX: 3000,
42+
} as const;
43+
44+
export const RESPONSE_CHANCES = {
45+
AFTER_LEADER: 0.5, // 50% chance
46+
FREQUENT_CHATTER: 0.5, // Base chance for frequent responders
47+
} as const;
48+
49+
export const LOSE_INTEREST_WORDS = [
50+
"shut up",
51+
"stop",
52+
"please shut up",
53+
"shut up please",
54+
"dont talk",
55+
"silence",
56+
"stop talking",
57+
"be quiet",
58+
"hush",
59+
"wtf",
60+
"chill",
61+
"stfu",
62+
"stupid bot",
63+
"dumb bot",
64+
"stop responding",
65+
"god damn it",
66+
"god damn",
67+
"goddamnit",
68+
"can you not",
69+
"can you stop",
70+
"be quiet",
71+
"hate you",
72+
"hate this",
73+
"fuck up",
74+
] as const;
75+
76+
export const IGNORE_RESPONSE_WORDS = [
77+
"lol",
78+
"nm",
79+
"uh",
80+
"wtf",
81+
"stfu",
82+
"dumb",
83+
"jfc",
84+
"omg",
85+
] as const;

0 commit comments

Comments
 (0)