MCPcopy Create free account
hub / github.com/GlobalTechInfo/MEGA-MDX / incrementMessageCount

Function incrementMessageCount

plugins/rank.ts:8–14  ·  view source on GitHub ↗

* Increment message count for a user in a chat * Now uses the unified store system (backward compatible)

(chatId: any, userId: any)

Source from the content-addressed store, hash-verified

6 * Now uses the unified store system (backward compatible)
7 */
8async function incrementMessageCount(chatId: any, userId: any) {
9 try {
10 await store.incrementMessageCount(chatId, userId)
11 } catch(error: any) {
12 console.error('Error incrementing message count:', error)
13 }
14}
15
16/**
17 * Load all message counts (backward compatible)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected