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.
17 lines
470 B
17 lines
470 B
const GuildData = require('../../models/guild');
|
|
const UserData = require('../../models/user');
|
|
|
|
module.exports = async (client) => {
|
|
client.misc.cache.bl = {
|
|
guild: [],
|
|
user: []
|
|
};
|
|
|
|
for await (const guild of GuildData.find()) {
|
|
if (guild.blacklisted) {client.misc.cache.bl.guild.push(guild.gid);}
|
|
}
|
|
|
|
for await (const user of UserData.find()) {
|
|
if (user.blackisted) {client.misc.cache.bl.user.push(user.uid);}
|
|
}
|
|
}; |