fixed unicode single quotes in src/events/messageCreate.ts
This commit is contained in:
@@ -60,7 +60,7 @@ export default event(Events.MessageCreate, async ({ log, msgHist, ollama, client
|
|||||||
if (!shouldRespond) return
|
if (!shouldRespond) return
|
||||||
|
|
||||||
// Set interaction key with 60s expiration
|
// 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) {
|
} else if (!message.author.bot) {
|
||||||
// Human message
|
// Human message
|
||||||
const randomChance = Math.random() < 0.30
|
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'))
|
log(isFromBot ? 'Responding to bot message' : (isMentioned ? 'Responding to mention' : 'Responding due to random chance'))
|
||||||
|
|
||||||
// Load and process bot’s own history
|
// Load and process bot’s own history
|
||||||
const historyFile = `${message.channelId}-${client.user.username}.json`
|
const historyFile = '${message.channelId}-${client.user.username}.json'
|
||||||
|
|
||||||
// Default stream to false
|
// Default stream to false
|
||||||
let shouldStream = false
|
let shouldStream = false
|
||||||
|
|||||||
Reference in New Issue
Block a user