1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-23 03:33:17 +00:00

patch 3.8.4

This commit is contained in:
Matte 2020-07-09 13:52:30 +03:00
parent c2e5e34088
commit 1966324c31
4 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "musix", "name": "musix",
"version": "3.8.3", "version": "3.8.4",
"description": "V3 for Musix the discord music bot", "description": "V3 for Musix the discord music bot",
"main": "./index.js", "main": "./index.js",
"scripts": { "scripts": {

View File

@ -8,6 +8,8 @@ module.exports = {
let prefix = client.global.db.guilds[msg.guild.id].prefix || client.config.prefix; let prefix = client.global.db.guilds[msg.guild.id].prefix || client.config.prefix;
const args = msg.content.slice(prefix.length).split(" "); const args = msg.content.slice(prefix.length).split(" ");
if (client.config.devMode) prefix = client.config.devPrefix; if (client.config.devMode) prefix = client.config.devPrefix;
const permission = msg.channel.permissionsFor(client.user);
if (!permission.has("SEND_MESSAGES")) return;
if (msg.mentions.users.first()) { if (msg.mentions.users.first()) {
if (msg.mentions.users.first().id === client.user.id) { if (msg.mentions.users.first().id === client.user.id) {
if (!args[1]) return; if (!args[1]) return;

View File

@ -63,7 +63,7 @@ function findSimilar(client, queue, prevSongs, guild) {
queue.songs.push({ queue.songs.push({
title: Discord.Util.escapeMarkdown(songInfo.videoDetails.title), title: Discord.Util.escapeMarkdown(songInfo.videoDetails.title),
url: `https://www.youtube.com/watch?v=${songs[random].youtubeId}`, url: `https://www.youtube.com/watch?v=${songs[random].youtubeId}`,
author: {}, author: client.user,
type: "ytdl", type: "ytdl",
info: songInfo.videoDetails, info: songInfo.videoDetails,
track: query.track, track: query.track,

View File

@ -1,5 +1,5 @@
module.exports = function (msg, args, client, Discord, command) { module.exports = function (msg, args, client, Discord, command) {
const permissions = msg.channel.permissionsFor(msg.client.user); const permissions = msg.channel.permissionsFor(client.user);
if (!permissions.has("EMBED_LINKS")) if (!permissions.has("EMBED_LINKS"))
return msg.channel.send(client.messages.noPermsEmbed); return msg.channel.send(client.messages.noPermsEmbed);
if (!permissions.has("USE_EXTERNAL_EMOJIS")) if (!permissions.has("USE_EXTERNAL_EMOJIS"))