fixed unicode single quotes in src/events/messageCreate.ts
Some checks failed
Builds / Discord-Node-Build (push) Has been cancelled
Builds / Discord-Ollama-Container-Build (push) Has been cancelled
Coverage / Discord-Node-Coverage (push) Has been cancelled

This commit is contained in:
2025-05-20 14:18:16 -04:00
parent efa8b84d75
commit 6e46450d84

View File

@@ -60,7 +60,7 @@ export default event(Events.MessageCreate, async ({ log, msgHist, ollama, client
if (!shouldRespond) return
// Set interaction key with 60s expiration
await redis.set(interactionKey, '1', 'EX', 60)
await redis.set(interactionKey, '1', { EX: 60 });
} else if (!message.author.bot) {
// Human message
const randomChance = Math.random() < 0.30
@@ -77,7 +77,7 @@ export default event(Events.MessageCreate, async ({ log, msgHist, ollama, client
log(isFromBot ? 'Responding to bot message' : (isMentioned ? 'Responding to mention' : 'Responding due to random chance'))
// Load and process bots own history
const historyFile = `${message.channelId}-${client.user.username}.json`
const historyFile = '${message.channelId}-${client.user.username}.json'
// Default stream to false
let shouldStream = false