Spot/event/message.js

13 lines
291 B
JavaScript
Raw Normal View History

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