broke out redis to redis subdirectory
This commit is contained in:
@@ -36,10 +36,10 @@ export default event(Events.MessageCreate, async ({ log, msgHist, ollama, client
|
||||
// Do not respond if bot talks in the chat
|
||||
if (message.author.id === clientId) return
|
||||
|
||||
// Check if message mentions the bot or passes random chance (10%)
|
||||
// Check if message mentions the bot or passes random chance (30%)
|
||||
const isMentioned = message.mentions.has(clientId)
|
||||
const isCommand = message.content.startsWith('/')
|
||||
const randomChance = Math.random() < 0.1 // 10% chance
|
||||
const randomChance = Math.random() < 0.30 // 30% chance
|
||||
if (!isMentioned && (isCommand || !randomChance)) return
|
||||
|
||||
// Log response trigger
|
||||
|
||||
Reference in New Issue
Block a user