1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-06-16 18:56:00 +00:00

Chore 3.7.2

This commit is contained in:
MatteZ02
2020-07-01 21:44:05 +03:00
parent 78131d1fde
commit 8f7ff16497
6 changed files with 35 additions and 5 deletions

View File

@ -1,3 +1,5 @@
const ms = require("ms");
module.exports = {
name: "message",
async execute(client, msg, Discord) {
@ -35,7 +37,7 @@ function getCommand(client, args, msg, Discord) {
(cmd) => cmd.alias && cmd.alias.includes(commandName)
);
if (!command) return;
if (command.onlyDev && msg.author.id !== client.config.devId) return;
if (command.onlyDev && msg.author.id !== client.config.devId) return msg.channel.send(client.messages.onlyDev);
if (client.config.devMode && msg.member.id !== client.config.devId && msg.guild.id !== "718081535240306738")
return msg.channel.send(client.messages.devMode);
client.funcs.exe(msg, args, client, Discord, command);