Spot/event/message.js
2021-07-16 21:10:49 -04:00

12 lines
291 B
JavaScript

const Command = require('../model/command');
/**
* @param {Message} message
*/
module.exports = async (message) => {
const user = message.author;
if ((message.guild === null || isRightGuild(message.guild.id)) && !user.bot) {
await Command.parseMessage(message);
}
};