mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-10 05:10:17 +00:00
Update eval.js
This commit is contained in:
parent
271c16a4c0
commit
e8f30cd706
@ -3,7 +3,9 @@ module.exports = {
|
||||
description: 'Evaluation command',
|
||||
cooldown: 5,
|
||||
async execute(message, args, client, Discord, prefix) {
|
||||
const ytdl = require('ytdl-core');
|
||||
const serverQueue = client.queue.get(message.guild.id);
|
||||
let data = await Promise.resolve(ytdl.getInfo(serverQueue.songs[0].url));
|
||||
if (message.author.id !== '360363051792203779') return message.channel.send(':x: You are not allowed to do that!');
|
||||
const input = message.content.slice(prefix.length + 4);
|
||||
let output;
|
||||
|
Loading…
Reference in New Issue
Block a user