You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Natsuki/util/cache/monit.js

12 lines
290 B

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
};
}
}