|
|
@ -60,6 +60,7 @@ module.exports = async (client, message) => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (message.guild && client.misc.cache.lxp.enabled.includes(message.guild.id)) { |
|
|
|
if (message.guild && client.misc.cache.lxp.enabled.includes(message.guild.id)) { |
|
|
|
|
|
|
|
if (!client.misc.cache.lxp.disabledMessages.has(message.guild.id) || !client.misc.cache.lxp.disabledMessage.get(message.guild.id).includes(message.channel.id)) { |
|
|
|
if (!client.misc.cache.lxp.xp[message.guild.id]) {client.misc.cache.lxp.xp[message.guild.id] = {};} |
|
|
|
if (!client.misc.cache.lxp.xp[message.guild.id]) {client.misc.cache.lxp.xp[message.guild.id] = {};} |
|
|
|
if (!client.misc.cache.lxp.xp[message.guild.id][message.author.id]) { |
|
|
|
if (!client.misc.cache.lxp.xp[message.guild.id][message.author.id]) { |
|
|
|
LXP.findOne({gid: message.guild.id}).then(xp => { |
|
|
|
LXP.findOne({gid: message.guild.id}).then(xp => { |
|
|
@ -74,6 +75,7 @@ module.exports = async (client, message) => { |
|
|
|
require('../util/lxp/gainxp')(client, message.member.id, message.channel); |
|
|
|
require('../util/lxp/gainxp')(client, message.member.id, message.channel); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!client.misc.cache.monners[message.author.id]) { |
|
|
|
if (!client.misc.cache.monners[message.author.id]) { |
|
|
|
let tmonners = await Monners.findOne({uid: message.author.id}) || new Monners({uid: message.author.id}); |
|
|
|
let tmonners = await Monners.findOne({uid: message.author.id}) || new Monners({uid: message.author.id}); |
|
|
|