forgot these files

master
Kit Kasune 4 years ago
parent 507b5baa1b
commit c3cce1a6d4
  1. 2
      events/messageDelete.js
  2. 8
      events/ready.js

@ -1,7 +1,7 @@
const Discord = require('discord.js'); const Discord = require('discord.js');
module.exports = async (client, message) => { module.exports = async (client, message) => {
if (message.channel.type != "text") {return;}; if (message.channel.type !== "text") {return;}
//if (!Object.keys(snipe.delete).includes(message.guild.id)) {snipe.delete[message.guild.id] = {};}; //if (!Object.keys(snipe.delete).includes(message.guild.id)) {snipe.delete[message.guild.id] = {};};
//snipe.delete[message.guild.id][message.channel.id] = message; //snipe.delete[message.guild.id][message.channel.id] = message;

@ -62,17 +62,17 @@ module.exports = async client => {
if (tguild && tguild.prefix && tguild.prefix.length) {client.guildconfig.prefixes.set(tg.id, tguild.prefix);} if (tguild && tguild.prefix && tguild.prefix.length) {client.guildconfig.prefixes.set(tg.id, tguild.prefix);}
let tl = await LogData.findOne({gid: tg.id}); let tl = await LogData.findOne({gid: tg.id});
if (tl) { if (tl) {
let keys = Object.keys(tl); let keys = Object.keys(tl.logs);
let k; for (k of keys) {if (typeof tl[k] === "string" && tl[k].length) { let k; for (k of keys) {if (typeof tl.logs[k] === "string" && tl.logs[k].length) {
if (!client.guildconfig.logs.has(tg.id)) {client.guildconfig.logs.set(tg.id, new Map());} if (!client.guildconfig.logs.has(tg.id)) {client.guildconfig.logs.set(tg.id, new Map());}
client.guildconfig.logs.get(tg.id).set(k, tl[k]); client.guildconfig.logs.get(tg.id).set(k, tl.logs[k]);
}} }}
} }
}}; }};
setPL(); setPL();
siftStatuses(); siftStatuses();
setInterval(() => {setPL(); siftStatuses(client, null);}, 120000); setInterval(() => {siftStatuses(client, null);}, 120000);
await require('../util/cache')(client); await require('../util/cache')(client);

Loading…
Cancel
Save