|
|
@ -8,7 +8,7 @@ const AR = require('../models/ar'); |
|
|
|
const LXP = require('../models/localxp'); |
|
|
|
const LXP = require('../models/localxp'); |
|
|
|
const Monitors = require('../models/monitor'); |
|
|
|
const Monitors = require('../models/monitor'); |
|
|
|
|
|
|
|
|
|
|
|
const channelTypes = ["GUILD_MESSAGE", "DM", "GUILD_NEWS_THREAD", "GUILD_PRIVATE_THREAD", "GUILD_PUBLIC_THREAD", "GUILD_NEWS", "GROUP_DM", "GUILD_STORE"]; |
|
|
|
const channelTypes = ["GUILD_MESSAGE", "DM", "GUILD_NEWS_THREAD", "GUILD_PRIVATE_THREAD", "GUILD_PUBLIC_THREAD", "GUILD_NEWS", "GROUP_DM", "GUILD_STORE", "GUILD_TEXT"]; |
|
|
|
|
|
|
|
|
|
|
|
module.exports = async (client, message) => { |
|
|
|
module.exports = async (client, message) => { |
|
|
|
if (message.author.bot) {return undefined;} |
|
|
|
if (message.author.bot) {return undefined;} |
|
|
@ -90,8 +90,6 @@ module.exports = async (client, message) => { |
|
|
|
client.misc.cache.monit[message.guild.id].expiry.setTime(Date.now()); |
|
|
|
client.misc.cache.monit[message.guild.id].expiry.setTime(Date.now()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
if (msg.startsWith(prefix) || msg.startsWith(`<@${client.user.id}>`) || msg.startsWith(`<@!${client.user.id}>`)) { |
|
|
|
if (msg.startsWith(prefix) || msg.startsWith(`<@${client.user.id}>`) || msg.startsWith(`<@!${client.user.id}>`)) { |
|
|
|
let command = client.commands.get(cmd) || client.commands.get(client.aliases.get(cmd)); |
|
|
|
let command = client.commands.get(cmd) || client.commands.get(client.aliases.get(cmd)); |
|
|
|