Skip to content

Commit cbb443a

Browse files
committed
fix garb
1 parent dbbb6a1 commit cbb443a

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

src/providers/boredom.ts

+1-14
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { IAgentRuntime, Memory, Provider, State } from "../core/types.ts";
22

33
const boredomLevels = [
44
{
5-
minScore: -4,
5+
minScore: -10000,
66
statusMessages: [
77
"{{agentName}} is feeling very engaged with the conversation and seems to be providing value to the conversation",
88
// ... TODO: Add more status messages
@@ -207,9 +207,6 @@ const boredom: Provider = {
207207
const now = Date.now(); // Current UTC timestamp
208208
const fifteenMinutesAgo = now - 15 * 60 * 1000; // 15 minutes ago in UTC
209209

210-
console.log("fifteenMinutesAgo", new Date(fifteenMinutesAgo).toISOString());
211-
console.log("now", new Date(now).toISOString());
212-
213210
const recentMessages = await runtime.messageManager.getMemories({
214211
roomId: message.roomId,
215212
start: fifteenMinutesAgo,
@@ -218,35 +215,27 @@ const boredom: Provider = {
218215
unique: false,
219216
});
220217

221-
222-
console.log("recentMessages", recentMessages);
223-
224218
let boredomScore = 0;
225219

226220
for (const recentMessage of recentMessages) {
227221
const messageText = recentMessage.content.text.toLowerCase();
228222

229223
if (recentMessage.userId !== agentId) {
230-
console.log("subtract 1 from boredom score");
231224
// if message text includes any of the interest words, subtract 1 from the boredom score
232225
if (interestWords.some((word) => messageText.includes(word))) {
233226
boredomScore -= 1;
234227
}
235228
if (messageText.includes("?")) {
236-
console.log("subtract 1 from boredom score");
237229
boredomScore -= 1;
238230
}
239231
if (cringeWords.some((word) => messageText.includes(word))) {
240-
console.log("add 1 to boredom score");
241232
boredomScore += 1;
242233
}
243234
} else {
244235
if (interestWords.some((word) => messageText.includes(word))) {
245-
console.log("subtract 1 from boredom score");
246236
boredomScore -= 1;
247237
}
248238
if (messageText.includes("?")) {
249-
console.log("add 1 to boredom score");
250239
boredomScore += 1;
251240
}
252241
}
@@ -260,8 +249,6 @@ const boredom: Provider = {
260249
}
261250
}
262251

263-
console.log("boredomScore", boredomScore);
264-
265252
const boredomLevel = boredomLevels
266253
.filter((level) => boredomScore >= level.minScore)
267254
.pop();

0 commit comments

Comments
 (0)