parent
493d61eb1f
commit
64057c3332
@ -0,0 +1,12 @@ |
||||
const Monitor = require('../../models/monitor'); |
||||
|
||||
module.exports = async client => { |
||||
client.misc.cache.monit = {}; |
||||
|
||||
for await (const tm of Monitor.find()) { |
||||
client.misc.cache.monit[tm.gid] = { |
||||
messages: tm.messages, |
||||
voice: tm.voice |
||||
}; |
||||
} |
||||
} |
Loading…
Reference in new issue