mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-10 02:00:20 +00:00
Update msg.js
This commit is contained in:
parent
4f05312be8
commit
78131d1fde
@ -2,8 +2,8 @@ module.exports = {
|
||||
name: "message",
|
||||
async execute(client, msg, Discord) {
|
||||
if (msg.author.bot || !msg.guild) return;
|
||||
if (!client.global.db.guilds[msg.guild.id]) return;
|
||||
let prefix = client.global.db.guilds[msg.guild.id].prefix;
|
||||
if (!client.global.db.guilds[msg.guild.id]) client.funcs.checkDB(client);
|
||||
let prefix = client.global.db.guilds[msg.guild.id].prefix || client.config.prefix;
|
||||
const args = msg.content.slice(prefix.length).split(" ");
|
||||
if (client.config.devMode) prefix = client.config.devPrefix;
|
||||
if (msg.mentions.users.first()) {
|
||||
|
Loading…
Reference in New Issue
Block a user